Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
3eeba4c
add docs
pellared Jul 15, 2025
5fe199b
Refine docs
pellared Jul 15, 2025
2212cb2
Merge branch 'main' into span-metrics
pellared Jul 16, 2025
16df7b8
Move experimental docs to x/internal
pellared Jul 16, 2025
e6a3029
improve docs
pellared Jul 16, 2025
45aaace
update header
pellared Jul 16, 2025
7c1ea5c
fix link
pellared Jul 16, 2025
547a989
draft implementation
pellared Jul 16, 2025
bb6b8f8
add TestSelfObservabilty and fix implementation
pellared Jul 16, 2025
2fd1368
Add attributes
pellared Jul 16, 2025
25894d6
Add changelog entry
pellared Jul 16, 2025
418297e
lint
pellared Jul 16, 2025
6b33d72
Update TODO comments
pellared Jul 16, 2025
d9105c0
Merge branch 'main' into span-metrics
pellared Jul 17, 2025
3d132c7
go mod tidy
pellared Jul 17, 2025
713a3e7
Bump to semconv/v1.36.0
pellared Jul 17, 2025
8cd9767
refactor initSelfObservability
pellared Jul 17, 2025
6304e1d
refactor attr creation
pellared Jul 17, 2025
3fa8aa5
add otel.span.parent.origin attribute
pellared Jul 17, 2025
455060a
Add test cases
pellared Jul 17, 2025
89d3a8d
refactor test
pellared Jul 17, 2025
b9d533a
Add RemoteParentSpan case
pellared Jul 17, 2025
21735b7
Add LocalParentSpan test case
pellared Jul 17, 2025
9975391
tidy tests
pellared Jul 17, 2025
ab3e2eb
Add OnlyRecordingSpan test case
pellared Jul 17, 2025
e729681
refactor TestRecordOnlySampler
pellared Jul 17, 2025
c40a561
Redo the docs
pellared Jul 17, 2025
24b4f8e
nolint
pellared Jul 17, 2025
90885b9
Merge branch 'main' into span-metrics
pellared Jul 17, 2025
f3740e6
markdownlint fix
pellared Jul 17, 2025
4b37175
Merge branch 'main' into span-metrics
pellared Jul 21, 2025
fcef2ac
Merge branch 'main' into span-metrics
pellared Jul 21, 2025
76001a3
Merge branch 'main' into span-metrics
pellared Jul 21, 2025
5e44856
Update sdk/trace/internal/x/README.md
pellared Jul 21, 2025
afee3cc
Merge branch 'main' into span-metrics
pellared Jul 22, 2025
ad13ce9
refactor: reuse x.SelfObservability
pellared Jul 22, 2025
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
16 changes: 16 additions & 0 deletions sdk/trace/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,21 @@ Package trace contains support for OpenTelemetry distributed tracing.

The following assumes a basic familiarity with OpenTelemetry concepts.
See https://opentelemetry.io.

# Self-Observability (Experimental)

This feature is experimental and may change in backwards incompatible ways in future releases.

The SDK provides a self-observability feature that allows you to monitor the SDK itself.

To opt-in, set the environment variable OTEL_GO_X_SELF_OBSERVABILITY to "true".

When enabled, the SDK will create following metrics using the global MeterProvider:
- otel.sdk.span.live
- otel.sdk.span.started

Please see the [Semantic conventions for OpenTelemetry SDK metrics] documentation for more details on these metrics.

[Semantic conventions for OpenTelemetry SDK metrics]: https://github.com/open-telemetry/semantic-conventions/blob/v1.36.0/docs/otel/sdk-metrics.md
*/
package trace // import "go.opentelemetry.io/otel/sdk/trace"
Loading