You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clarify that Trace/Meter are associated with Instrumentation Scope (#2276)
* Clarify that Trace/Meter are associated with Instrumentation Scope
This is a slightly different take on open-telemetry/opentelemetry-specification#2203
Instead of renaming instrumentation library to instrumentation scope everywhere
this PR suggests targetted editing of wording of the Trace/Meter obtaining API
to allow not just instrumentation library but other instrumentation scopes to be
used as a parameter.
This change does not force renaming of API parameters and is not a breaking change.
We consider it a clarification of usage to match the intent that we had for the "name"
field.
If this PR is accepted there will be a follow up PR that will suggest to rename
InstrumentationLibrary* messages in OTLP proto to InstrumentationScope* message.
Such a change will not be a breaking change for the OTLP wire format and is acceptable.
If this PR is accepted we will also closeopen-telemetry/opentelemetry-specification#1236
since it will be no longer necessary. The logger name will be recorded as the
instrumentation scope. This clarification will be a follow up PR that clarifies the
behavior in https://github.com/open-telemetry/oteps/blob/main/text/logs/0150-logging-library-sdk.md
| When an invalid `name` is specified a working `Meter` implementation is returned as a fallback. || + | + || - |||||| - ||
104
106
| The fallback `Meter``name` property keeps its original invalid value. | X | - | - || - |||||| - ||
107
+
| Associate `Meter` with `InstrumentationScope`. |||||||||||||
105
108
| The meter provides functions to create a new `Counter`. || + | + || + |||||| + ||
106
109
| The meter provides functions to create a new `AsynchronousCounter`. || + | + || + |||||| + ||
107
110
| The meter provides functions to create a new `Histogram`. || + | + || + |||||| + ||
@@ -155,6 +158,7 @@ Disclaimer: this list of features is still a work in progress, please refer to t
155
158
|`MeterProvider` allows a `Resource` to be specified. || + | + || + |||||| + ||
156
159
| A specified `Resource` can be associated with all the produced metrics from any `Meter` from the `MeterProvider`. || + | + || + |||||| + ||
157
160
| The supplied `name`, `version` and `schema_url` arguments passed to the `MeterProvider` are used to create an `InstrumentationLibrary` instance stored in the `Meter`. || + | + || + |||||| - ||
161
+
| The supplied `name`, `version` and `schema_url` arguments passed to the `MeterProvider` are used to create an `InstrumentationScope` instance stored in the `Meter`. |||||||||||||
158
162
| Configuration is managed solely by the `MeterProvider`. || + | + || + |||||| + ||
159
163
| The `MeterProvider` provides methods to update the configuration | X | - | - || + |||||| + ||
160
164
| The updated configuration applies to all already returned `Meter`s. | if above | - | - || - |||||| + ||
@@ -289,6 +293,7 @@ Note: Support for environment variables is optional.
0 commit comments