We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug The AWS trace id which is generating via this package is showing as invalid in AWS x-ray
Steps to reproduce
below is my code which I used in my nest application
import { NodeTracerProvider } from '@opentelemetry/sdk-node'; import { AWSXRayIdGenerator } from '@opentelemetry/id-generator-aws-xray'; import { AwsXRayExporter } from '@aws/otel-aws-xray-exporter'; import { registerInstrumentations } from '@opentelemetry/instrumentation'; import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
const provider = new NodeTracerProvider({ idGenerator: new AWSXRayIdGenerator(), // Ensures X-Ray compatible trace IDs });
const xrayExporter = new AwsXRayExporter({ // Optional configurations if needed });
provider.addSpanProcessor(new SimpleSpanProcessor(xrayExporter));
provider.register();
// Register automatic instrumentation for Node.js registerInstrumentations({ instrumentations: [getNodeAutoInstrumentations()], });
I am getting trace id like this '68406520a006649127e371903a2de979'
What did you expect to see?
But the AWS -X-ray expecting '1-58406520-a006649127e371903a2de979'
What did you see instead?
What version did you use?
I am using sdk-trace-base = 1.27.0 id-generator-aws-xray = 1.2.2 all others are 0.50 ranges
What config did you use?
Environment
Additional context
The text was updated successfully, but these errors were encountered:
Can you give more details? Based on the description, I don't see any information about how this relates to the collector.
Sorry, something went wrong.
I added my code. Using this telemetry I am not getting a proper format of trace id. Am I missing anything ?
Can I get any help on this. Please let me know what details you need from my end
Is there a way I can convert W3C trace ID of 4efaaf4d1e8720b39541901950019ee5 to this format 1-4efaaf4d-1e8720b39541901950019ee5
No branches or pull requests
Describe the bug
The AWS trace id which is generating via this package is showing as invalid in AWS x-ray
Steps to reproduce
below is my code which I used in my nest application
import { NodeTracerProvider } from '@opentelemetry/sdk-node';
import { AWSXRayIdGenerator } from '@opentelemetry/id-generator-aws-xray';
import { AwsXRayExporter } from '@aws/otel-aws-xray-exporter';
import { registerInstrumentations } from '@opentelemetry/instrumentation';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
const provider = new NodeTracerProvider({
idGenerator: new AWSXRayIdGenerator(), // Ensures X-Ray compatible trace IDs
});
const xrayExporter = new AwsXRayExporter({
// Optional configurations if needed
});
provider.addSpanProcessor(new SimpleSpanProcessor(xrayExporter));
provider.register();
// Register automatic instrumentation for Node.js
registerInstrumentations({
instrumentations: [getNodeAutoInstrumentations()],
});
I am getting trace id like this '68406520a006649127e371903a2de979'
What did you expect to see?
But the AWS -X-ray expecting '1-58406520-a006649127e371903a2de979'
What did you see instead?
I am getting trace id like this '68406520a006649127e371903a2de979'
What version did you use?
I am using
sdk-trace-base = 1.27.0
id-generator-aws-xray = 1.2.2
all others are 0.50 ranges
What config did you use?
Environment
Additional context
The text was updated successfully, but these errors were encountered: