File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
src/test/java/io/opentelemetry/contrib/stacktrace Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1-
21# Span stacktrace capture
32
43This module provides a ` SpanProcessor ` that captures the [ ` code.stacktrace ` ] ( https://opentelemetry.io/docs/specs/semconv/attributes-registry/code/ ) .
@@ -25,6 +24,19 @@ SDK when included in the application runtime dependencies.
2524- value is the class name of a class implementing ` java.util.function.Predicate<ReadableSpan> `
2625- filter class must be publicly accessible and provide a no-arg constructor
2726
27+ ### Usage with declarative configuration
28+
29+ You can enable the stacktrace span processor using declarative YAML configuration with the OpenTelemetry SDK. For example:
30+
31+ ``` yaml
32+ file_format : 1.0-rc.1
33+ tracer_provider :
34+ processors :
35+ - experimental-stacktrace :
36+ ` ` `
37+
38+ This configuration will register the StackTraceSpanProcessor for all spans.
39+
2840## Component owners
2941
3042- [Jack Shirazi](https://github.com/jackshirazi), Elastic
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class StackTraceComponentProviderTest {
1717 @ Test
1818 void endToEnd () {
1919 String yaml =
20- "file_format: 0.4 \n "
20+ "file_format: 1.0-rc.1 \n "
2121 + "tracer_provider:\n "
2222 + " processors:\n "
2323 + " - experimental-stacktrace:\n " ;
You can’t perform that action at this time.
0 commit comments