Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Resource to ShouldSample. #1658

Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ release.

### Traces

- Add InstrumentationLibrary and Resource as Sampler arguments. ([#1658](https://github.com/open-telemetry/opentelemetry-specification/pull/1658))

### 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 @@ -74,6 +74,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 Resources and InstrumentationLibrary | | | | | | | | | | | | |
Oberon00 marked this conversation as resolved.
Show resolved Hide resolved
| [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
5 changes: 5 additions & 0 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ 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).
* `Resource` of the `Span` to be created.
Oberon00 marked this conversation as resolved.
Show resolved Hide resolved
* `InstrumentationLibrary` (name and version) of the `Span` to be created.
Oberon00 marked this conversation as resolved.
Show resolved Hide resolved

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

**Return value:**

Expand Down