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

Propagation not working with xhr and fetch #40

Open
000bravvo opened this issue May 4, 2023 · 0 comments
Open

Propagation not working with xhr and fetch #40

000bravvo opened this issue May 4, 2023 · 0 comments

Comments

@000bravvo
Copy link

I'm using Boomerang otel plugin in my front-end and boomerang otel in my backend. Each network call is getting traced and visible in jaeger-ui but propagation is not happening. Service name is same in both sides.
Below is my Boomerang OTEL plugin configuration.
BOOMR.init({
beacon_url: 'http://localhost:8997/beacon',
ResourceTiming: {
enabled: true,
clearOnBeacon: true
},
AutoXHR: {
alwaysSendXhr: true
},
instrument_xhr: true,
History: {
enabled: true
},
OpenTelemetry: {
samplingRate: 1.0,
corsUrls: '',
collectorConfiguration: {
url: 'http://localhost:4318/v1/traces',
method:'POST',
headers: {},
concurrencyLimit: 10,
},
plugins_config: {
instrument_fetch: {
enabled: true,
clearTimingResources: false,
path: "",
applyCustomAttributesOnSpan: null, //A method with the following structure: (span: Span, request: Request) => { },
ignoreUrls: [],
propagateTraceHeaderCorsUrls: ['
']
},
instrument_xhr: {
enabled: true,
path: "",
applyCustomAttributesOnSpan: null, //A method with the following structure: (span: Span, xhr: XMLHttpRequest) => { },
propagateTraceHeaderCorsUrls: ['*'],
ignoreUrls: [],
clearTimingResources: false,
},
instrument_document_load: {
enabled: true,
path: "",
},
instrument_user_interaction: {
enabled: true,
path: "",
}
},
commonAttributes: {
"application": "UI",
"stage": "dev"
},
serviceName: "UI_BO_TEST",
propagationHeader: "TRACE_CONTEXT"
},
});
});

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

No branches or pull requests

1 participant