Skip to content

Create OpenTelemetry Bridge for Tracing #4834

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

Merged
merged 9 commits into from
Aug 23, 2022

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Aug 19, 2022

What this PR does:

Create OpenTelemetry Bridge for Tracing following https://opentelemetry.io/docs/migration/opentracing/

With this PR we can now export Cortex traces to multiples destinations as, for example, AWS X-RAY:

Screen Shot 2022-08-19 at 2 04 26 PM

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

# enhance exporter with attributes for specific exporter. Currently only
# awsxray is supported
# CLI flag: -tracing.otel.exporter-type
[exporter_type: <string> | default = ""]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does default "" mean awsxray?

Copy link
Member Author

@alanprot alanprot Aug 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No.. defaults mean "generic"...

What we do here for some destinations we need to configure the exporter a little different. For instance, if the end backend is X-Ray we need to generate the traceIds in a specific format.

I believe for the majority of the backends it will work with this type set to empty.

@alanprot alanprot force-pushed the otel-bridge branch 3 times, most recently from cbec84e to 9c6e384 Compare August 19, 2022 23:03
@alanprot alanprot marked this pull request as ready for review August 19, 2022 23:18
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
Signed-off-by: Alan Protasio <approtas@amazon.com>
@alanprot alanprot merged commit 1da8fae into cortexproject:master Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants