
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@opentelemetry/baggage-span-processor
Advanced tools
OpenTelemetry Baggage Span Processor for Node.js
The BaggageSpanProcessor reads entries stored in Baggage from the parent context and adds the baggage entries' keys and values to the span as attributes on span start.
Add this span processor to a tracer provider.
Keys and values added to Baggage will appear on subsequent child spans for a trace within this service and be propagated to external services in accordance with any configured propagation formats configured. If the external services also have a Baggage span processor, the keys and values will appear in those child spans as well.
⚠ Warning ⚠️
Do not put sensitive information in Baggage.
To repeat: a consequence of adding data to Baggage is that the keys and values will appear in all outgoing HTTP headers from the application.
Compatible with OpenTelemetry JS API and SDK 1.0+.
npm install --save @opentelemetry/baggage-span-processor
Add to the span processors that copies all baggage entries during configuration:
import { NodeSDK, tracing } from '@opentelemetry/sdk-node';
import { ALLOW_ALL_BAGGAGE_KEYS, BaggageSpanProcessor } from '@opentelemetry/baggage-span-processor';
const spanProcessors = [
new tracing.SimpleSpanProcessor(
new tracing.ConsoleSpanExporter()),
new BaggageSpanProcessor(ALLOW_ALL_BAGGAGE_KEYS)];
const sdk = new NodeSDK({
serviceName: "example-service",
spanProcessors
});
sdk.start();
Alternatively, you can provide a custom baggage key predicate to select which baggage keys you want to copy.
For example, to only copy baggage entries that start with my-key:
new BaggageSpanProcessor((baggageKey: string) => key.startsWith('my-key'))
For example, to only copy baggage entries that matches the regex ^key.+:
const regex = new RegExp("^key.+")
new BaggageSpanProcessor((baggageKey: string) => regex.test(baggageKey))
APACHE 2.0 - See LICENSE for more information.
FAQs
OpenTelemetry Baggage Span Processor for Node.js
The npm package @opentelemetry/baggage-span-processor receives a total of 95,536 weekly downloads. As such, @opentelemetry/baggage-span-processor popularity was classified as popular.
We found that @opentelemetry/baggage-span-processor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.