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

feat(instrumentation-xhr): add applyCustomAttributesOnSpan hook #2134

Merged
merged 10 commits into from
Apr 25, 2021
Prev Previous commit
Next Next commit
fix: lint
  • Loading branch information
mhennoch committed Apr 21, 2021
commit b5bbf47fe13c4a9d677ac8f9b73e4620b6c66a0c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ import { AttributeNames } from './enums/AttributeNames';
// safe enough
const OBSERVER_WAIT_TIME_MS = 300;

export type XHRCustomAttributeFunction = (span: api.Span, xhr: XMLHttpRequest) => void;
export type XHRCustomAttributeFunction = (
span: api.Span,
xhr: XMLHttpRequest
) => void;

/**
* XMLHttpRequest config
Expand Down