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 custom header for client identification to each API call #95

Open
Dynatrace-Jeroen-Hautekeete opened this issue Nov 5, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Dynatrace-Jeroen-Hautekeete

Is your feature request related to a problem? Please describe.
We're using a lot of python automation scripts, but when error rates increase on API calls it is difficult to identify the calling script.
Currently we need to go through the log files of all scripts to find which ones are failing or too chatty or implement wrong backoff/retry strategies.

Describe the solution you'd like
We would like to have the possibility to add a (set of) custom header(s) to the Dynatrace/Http_Client object(s)
e.g.: "x-python-automation: my-acme-script.py"

Describe alternatives you've considered
Alternatively a custom id could be added to the user-agent header, but I think that's not a huge difference in implementation to do that.

@Dynatrace-Jeroen-Hautekeete Dynatrace-Jeroen-Hautekeete added the enhancement New feature or request label Nov 5, 2024
@Dynatrace-James-Kitson
Copy link
Collaborator

This might be a bit unusual but I think it should be trivial to let you specify a list of headers to add to all the requests it makes. I'll review to be sure and if so add this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants