Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
ida613 committed Jan 7, 2025
1 parent 8f743c8 commit e191372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dd-trace/test/opentelemetry/context_manager.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ describe('OTel Context Manager', () => {
const span = makeSpan('otel-to-dd')
const contextWithSpan = trace.setSpan(contextWithBaggage, span)
api.context.with(contextWithSpan, () => {
expect(span._ddSpan.getBaggageItem('foo')).to.be.equal('bar')
expect(tracer.scope().active().getBaggageItem('foo')).to.be.equal('bar')
})
})

Expand All @@ -143,7 +143,7 @@ describe('OTel Context Manager', () => {
const ddSpan = tracer.startSpan('dd-to-otel')
ddSpan.setBaggageItem(baggageKey, baggageVal)
tracer.scope().activate(ddSpan, () => {
const baggages = propagation.getBaggage(api.context.active()).getAllEntries()
const baggages = propagation.getActiveBaggage().getAllEntries()
expect(baggages.length).to.equal(1)
const baggage = baggages[0]
expect(baggage[0]).to.equal(baggageKey)
Expand Down

0 comments on commit e191372

Please sign in to comment.