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

Add otlp exporter support behind config option #745

Merged
merged 11 commits into from
Mar 14, 2024
Merged

Conversation

t2t2
Copy link
Contributor

@t2t2 t2t2 commented Jan 31, 2024

Description

Add configuration option exporter.otlp that switches from zipkin exporter to otlp/json, while extracting component rate limiter and adding some fixes for using transport based on state of the page (prefer xhr with beacon while unloading)

Updated otel deps as they're back to working condition for web

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

  • Manual testing

Tested by sending data to otel collector. This feature still needs a lot more testing against rum-ingest once that's available

{
  beaconEndpoint: 'http://localhost:4318/v1/traces',
  exporter: {
    otlp: true,
  },
}

@t2t2 t2t2 requested review from a team as code owners January 31, 2024 12:56
// Changes: Add attribute serializing hook to remove data before export
spans = spans.map(span => {
// @ts-expect-error Yep we're overwriting a readonly property here. Deal with it
span.attributes = this._onAttributesSerializing ? this._onAttributesSerializing(span.attributes, span) : span.attributes;
Copy link
Contributor

Choose a reason for hiding this comment

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

this._onAttributesSerializing alway true no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

should be, tho types says maybe

@mhennoch mhennoch merged commit b007bc1 into main Mar 14, 2024
5 of 6 checks passed
@mhennoch mhennoch deleted the add-otlp-exporter branch March 14, 2024 11:01
@github-actions github-actions bot locked and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants