Skip to content
New issue

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

Create new traceparent if no header was provided #8

Merged
merged 3 commits into from
Nov 8, 2024

Conversation

kristofferjansson
Copy link
Contributor

@kristofferjansson kristofferjansson commented Nov 8, 2024

This PR updates our middleware to create a new traceparent if no traceparent header is provided. It also exposes the traceparent generation function in the library's public API, making it easy for users to create a new traceparent in environments like Cloud Run jobs, where GCP does not automatically generate one.

@kristofferjansson kristofferjansson force-pushed the construct-traceparent branch 2 times, most recently from 2eda041 to 2c71f1f Compare November 8, 2024 10:40
@kristofferjansson kristofferjansson changed the title Add function to construct a new traceparent Create new traceparent if no header was provided Nov 8, 2024
@kristofferjansson kristofferjansson marked this pull request as ready for review November 8, 2024 10:58
@kristofferjansson kristofferjansson merged commit 62d7d83 into main Nov 8, 2024
2 checks passed
@kristofferjansson kristofferjansson deleted the construct-traceparent branch November 8, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants