Open cbodin opened 2 months ago
The attributesFromHeaders option does not seem to be working correctly, or it needs some more documentation for how to configure it.
attributesFromHeaders
I've configured everything according to the Using @vercel/otel page, and configured the OpenTelemetry dev environment.
My instrumentation.ts file:
export async function register() { registerOTel({ serviceName: "sample-service-name", attributes: { "app.environment": process.env.NEXT_PUBLIC_ENVIRONMENT, "app.test": "hello", }, attributesFromHeaders: { "app.referer": "referer", "app.host": "host", "app.accept": "accept", "app.method": "method", "http.referer": "referer", "http.host": "host", "http.accept": "accept", "http.method": "method", }, }); }
Looking at the collected trace in Zipkin, all the header attributes are missing:
Possible duplicate of https://github.com/vercel/otel/issues/109
The
attributesFromHeaders
option does not seem to be working correctly, or it needs some more documentation for how to configure it.I've configured everything according to the Using @vercel/otel page, and configured the OpenTelemetry dev environment.
My instrumentation.ts file:
Looking at the collected trace in Zipkin, all the header attributes are missing:
Possible duplicate of https://github.com/vercel/otel/issues/109