Skip to content

Commit

Permalink
Clarify that Scope is defined at build time (open-telemetry#2878)
Browse files Browse the repository at this point in the history
I have seen several time a confusion around the nature of the
scope and whether scope attributes can change at runtime.

The purpose of this PR is to mak sure we all agree the scope is
a build time concept, or if we disagree then explicitly specify
what else the scope can denote and how its attribute can change
at runtime.
  • Loading branch information
tigrannajaryan authored Nov 2, 2022
1 parent 8d16354 commit 6c270fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions specification/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ fully qualified class name).
The instrumentation scope is used to obtain a
[Tracer or Meter](#tracer-name--meter-name).

The instrumentation scope may have zero or more additional attributes that provide
additional information about the scope. For example for a scope that specifies an
instrumentation library an additional attribute may be recorded to denote the URL of the
repository URL the library's source code is stored. Since the scope is a build-time
concept the attributes of the scope cannot change at runtime.

### Tracer Name / Meter Name

This refers to the `name` and (optional) `version` arguments specified when
Expand Down

0 comments on commit 6c270fd

Please sign in to comment.