Skip to content

Commit 2e4c0bd

Browse files
committed
readme
1 parent 741de0f commit 2e4c0bd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

span-stacktrace/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Span stacktrace capture
32

43
This 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

span-stacktrace/src/test/java/io/opentelemetry/contrib/stacktrace/StackTraceComponentProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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";

0 commit comments

Comments
 (0)