-
Notifications
You must be signed in to change notification settings - Fork 25
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
fix(python): x-doc-url support wip #916
Conversation
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.
LGTM!
expect(typeof har._id).toBe('string'); | ||
}); | ||
|
||
it.todo('should add `x-documentation-url` to response headers', async function () { |
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.
Should we bring this test in? Are there any other SDKs that don't yet support this?
it.todo('should add `x-documentation-url` to response headers', async function () { | |
it('should add `x-documentation-url` to response headers', async function () { |
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.
Ruby doesn't currently support it. There's a ticket tracking it in the metrics-sdk
project! Otherwise, we'll need to integrate some kind of mocking into the integration tests to support this across the board.
🧰 Changes
Adding support in Python for a new configuration option,
base_log_url
(e.g. "docs.example.com"), which is consumed to append a new response header,x-documentation-url
(e.g. "docs.example.com/logs/${UUID}").This configuration option is supported across all other SDKs, accept for Ruby, currently. It's used both to generate a direct link to the log that ReadMe's metrics SDK has just captured, as well as to prevent double log insertion when a request is made via "Try-It" in a documentation site.
🧬 QA & Testing
Provide as much information as you can on how to test what you've done.