opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Rename `InstrumentationLibrary` -> `InstrumentationScope`

Open pichlermarc opened this issue 2 years ago • 7 comments

InstrumentationLibrary has been renamed InstrumentationScope in the spec.

We need to find a non-breaking solution to rename it (and associated fields) in the Trace SDK as it already had a 1.0 release. In the Metrics SDK we should do that before GA.

pichlermarc avatar Apr 28 '22 08:04 pichlermarc

In metrics we can do a simple rename but in traces we have to keep the old name. We can mark the old name @deprecated in the js docs and remove when we do 2.0

dyladan avatar May 04 '22 16:05 dyladan

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

github-actions[bot] avatar Jul 04 '22 06:07 github-actions[bot]

Current progress is that metrics are updated to InstrumentationScope, but traces are not. I'm unassigning myself for now in case someone else has some cycles and wants to work on it. I'll mark this as never-stale too. :slightly_smiling_face:

pichlermarc avatar Jul 04 '22 08:07 pichlermarc

are we not using both names in traces?

dyladan avatar Jul 05 '22 13:07 dyladan

It looks like we use scope for the OTLP but not the internal SDK representation. We should definitely do this but it isn't critical priority IMO.

dyladan avatar Jul 05 '22 13:07 dyladan

@dyladan can you please clarify what you meant by we use scope for the OTLP? We still see instrumentationLibrary in the OTLP exported by the browser.

scheler avatar Aug 19 '22 16:08 scheler

@dyladan never mind, we were using an older version of otlp exporter.

scheler avatar Aug 19 '22 16:08 scheler

@mwear we are going through breaking changes for SDK 2.0 and I saw you are assigned to this issue. Is this something you still want to work on or should I make this up for grabs?

dyladan avatar Oct 25 '23 16:10 dyladan

I'm working on it!

bryantkale avatar Nov 08 '23 21:11 bryantkale