Skip to content

Commit

Permalink
Add InstrumentationLibrary to Sampler.ShouldSample (open-telemetry#1850)
Browse files Browse the repository at this point in the history
  • Loading branch information
iNikem authored Aug 10, 2021
1 parent 62a7bc5 commit 3c720c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ release.

### Traces

- Add InstrumentationLibrary to Sampler.ShouldSample.
([#1850](https://github.com/open-telemetry/opentelemetry-specification/pull/1850))

### Metrics

### Logs
Expand Down
1 change: 1 addition & 0 deletions spec-compliance-matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ formats is required. Implementing more than one format is optional.
| [Sampling](specification/trace/sdk.md#sampling) | | | | | | | | | | | | |
| Allow samplers to modify tracestate | | + | + | | + | + | + | | + | + | - | + |
| ShouldSample gets full parent Context | | + | + | + | + | + | + | | + | + | - | + |
| ShouldSample gets InstrumentationLibrary | | | | | | | | | | | | |
| [New Span ID created also for non-recording Spans](specification/trace/sdk.md#sdk-span-creation) | | + | + | | + | + | + | | + | + | - | + |
| [IdGenerators](specification/trace/sdk.md#id-generators) | | + | + | | + | + | | | + | + | | + |
| [SpanLimits](specification/trace/sdk.md#span-limits) | X | + | + | | + | + | | | | - | | + |
Expand Down
4 changes: 4 additions & 0 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,10 @@ Returns the sampling Decision for a `Span` to be created.
* Collection of links that will be associated with the `Span` to be created.
Typically useful for batch operations, see
[Links Between Spans](../overview.md#links-between-spans).
* `InstrumentationLibrary` (name and version) of the `Span` to be created.

Note: Implementations may "bundle" all or several arguments together in a single
object.

**Return value:**

Expand Down

0 comments on commit 3c720c1

Please sign in to comment.