Skip to content

Commit c6bccfc

Browse files
committed
fix processor name
1 parent 083a504 commit c6bccfc

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

inferred-spans/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ You can configure the inferred spans processor using declarative YAML configurat
4949
OpenTelemetry SDK. For example:
5050

5151
```yaml
52-
file_format: 0.4
52+
file_format: 1.0-rc.1
5353
tracer_provider:
5454
processors:
55-
- inferred-spans:
55+
- experimental_inferred_spans:
5656
enabled: true
5757
sampling_interval: 25ms
5858
included_classes: "org.example.myapp.*"

inferred-spans/src/main/java/io/opentelemetry/contrib/inferredspans/InferredSpansComponentProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public class InferredSpansComponentProvider implements ComponentProvider<SpanPro
1717

1818
@Override
1919
public String getName() {
20-
return "inferred_spans";
20+
return "experimental_inferred_spans";
2121
}
2222

2323
@Override
2424
public SpanProcessor create(DeclarativeConfigProperties config) {
2525
return InferredSpansConfig.create(
2626
new DeclarativeConfigPropertiesBridgeBuilder()
27-
// crop the prefix, because the properties are under the "inferred_spans" processor
27+
// crop the prefix, because the properties are under the "experimental_inferred_spans" processor
2828
.addMapping("otel.inferred.spans.", "")
2929
.build(config));
3030
}

inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/InferredSpansCustomizerProviderTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void declarativeConfig() {
3535
"file_format: 1.0-rc.1\n"
3636
+ "tracer_provider:\n"
3737
+ " processors:\n"
38-
+ " - inferred_spans:\n"
38+
+ " - experimental_inferred_spans:\n"
3939
+ " enabled: false\n"
4040
+ " backup:\n"
4141
+ " diagnostic:\n"

0 commit comments

Comments
 (0)