Hello, running into a strange issue where I don’t seem to be able to get context from within my workflow, but am able to retrieve that same context in my activities. The context that I’m talking about is baggage, and I haven’t made any changes to the propagators. So for example, when I start the workflow, I set the baggage with the following code:
const curContext = opentelemetry.context.active();
const curBaggage =
opentelemetry.propagation.getBaggage(curContext) ?? opentelemetry.propagation.createBaggage();
const newBaggage = curBaggage.setEntry('project', { value: context.project });
const newContext = opentelemetry.propagation.setBaggage(
opentelemetry.context.active(),
newBaggage,
);
return opentelemetry.context.with(newContext, async () => {
return await client.start(workflow, options);
});
And I access it in both my activities and workflows with:
const baggage =
opentelemetry.propagation.getBaggage(opentelemetry.context.active()) ||
opentelemetry.propagation.createBaggage();
console.log(JSON.stringify(baggage.getAllEntries(), null, 2));
console.log(`baggage value: ${JSON.stringify(baggage.getEntry('project'), null, 2)} \n\n\n\n`);
Is this intentional? I do have interceptors in my code that might be causing this, but wanted to see if this is expected behavior first.