Skip to content

Commit 2e78049

Browse files
committed
feat: time to say goodbye to some more old OTel cruft
1 parent dff39d3 commit 2e78049

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

src/publisher/index.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ export interface PublishOptions {
3838
flowControlOptions?: FlowControlOptions;
3939
gaxOpts?: CallOptions;
4040
messageOrdering?: boolean;
41-
42-
/** @deprecated Unset and use context propagation. */
43-
enableOpenTelemetryTracing?: boolean;
4441
}
4542

4643
/**
@@ -270,7 +267,6 @@ export class Publisher {
270267
gaxOpts: {
271268
isBundling: false,
272269
},
273-
enableOpenTelemetryTracing: false,
274270
flowControlOptions: Object.assign(
275271
{},
276272
flowControlDefaults,
@@ -290,13 +286,11 @@ export class Publisher {
290286
setOptions(options = {} as PublishOptions): void {
291287
const defaults = this.getOptionDefaults();
292288

293-
const {
294-
batching,
295-
gaxOpts,
296-
messageOrdering,
297-
enableOpenTelemetryTracing,
298-
flowControlOptions,
299-
} = extend(true, defaults, options);
289+
const {batching, gaxOpts, messageOrdering, flowControlOptions} = extend(
290+
true,
291+
defaults,
292+
options,
293+
);
300294

301295
this.settings = {
302296
batching: {
@@ -309,7 +303,6 @@ export class Publisher {
309303
},
310304
gaxOpts,
311305
messageOrdering,
312-
enableOpenTelemetryTracing,
313306
flowControlOptions,
314307
};
315308

test/publisher/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ describe('Publisher', () => {
408408
gaxOpts: {
409409
isBundling: false,
410410
},
411-
enableOpenTelemetryTracing: false,
412411
flowControlOptions: {
413412
maxOutstandingBytes: undefined,
414413
maxOutstandingMessages: undefined,
@@ -427,7 +426,6 @@ describe('Publisher', () => {
427426
gaxOpts: {
428427
isBundling: true,
429428
},
430-
enableOpenTelemetryTracing: true,
431429
flowControlOptions: {
432430
maxOutstandingBytes: 500,
433431
maxOutstandingMessages: 50,

0 commit comments

Comments
 (0)