Skip to content

Commit 55ba635

Browse files
committed
fix: switch away from deprecated spanProcessor
This option is deprecated in favour of `spanProcessors` which accepts an array of processors.
1 parent dff05ca commit 55ba635

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/opentelemetry/lib/config/tracing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ exports.createTracingConfig = function createTracingConfig(options) {
6666
enabled: false,
6767
endpoint: null
6868
});
69-
config.spanProcessor = new NoopSpanProcessor();
69+
config.spanProcessors = [new NoopSpanProcessor()];
7070
}
7171

7272
return config;

packages/opentelemetry/test/unit/lib/config/tracing.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe('@dotcom-reliability-kit/opentelemetry/lib/config/tracing', () => {
134134

135135
it('returns the configuration', () => {
136136
expect(config).toEqual({
137-
spanProcessor: NoopSpanProcessor.mock.instances[0]
137+
spanProcessors: [NoopSpanProcessor.mock.instances[0]]
138138
});
139139
});
140140
});

0 commit comments

Comments
 (0)