-
Notifications
You must be signed in to change notification settings - Fork 912
Docs/clarify ignore outgoing request hook #5792
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
base: main
Are you sure you want to change the base?
Docs/clarify ignore outgoing request hook #5792
Conversation
…s), deprecate metricReader, and add tests
Co-authored-by: Marc Pichler <[email protected]>
Co-authored-by: Marc Pichler <[email protected]>
3a56d83
to
45d0986
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this also has commits from a different PR that changes metric reader to be a list
sdk.start(); | ||
|
||
// Verify deprecation warning was shown | ||
sinon.assert.calledWith( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an import for sinon
*/ | ||
reader?: IMetricReader; | ||
readers?: IMetricReader[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change. Fine because this package is experimental but make sure it is noted in the changelog.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to have anything to do with documenting or clarifying...
Which problem is this PR solving?
This PR improves the documentation for the ignoreOutgoingRequestHook option in the HTTP instrumentation package.
Previously, the documentation did not clearly explain:
• How the function should be used.
• What parameters it receives.
• What its return value means.
This update provides:
• A clear and concise explanation in the options table.
• A dedicated section below the table describing the function’s usage, parameters, return values, and error behavior.
Following the existing README style, no code examples were added.
Fixes: #5516