I am monitoring .net service in fullstack mode via oneagent on host. This service convert and format data to post in Kafka topics and this is consumed by the other .net service but we have found that Dynatrace is adding extra header which is ‘x-dynatrace’ along with existing headers.
Question:
1. Can we prevent Dynatrace from adding ‘x-dynatrace’ and what’s the impact?
2. When consumer reads the topic will they get this header as well along with others?
3. What will be the correct way to monitor this service?
I just stumbled over your post now, because I have a similar problem, where we need to stop the H-Dynatrace header from being added for a specific request.
I think the best way to do this is to add the URL path you would like to exclude under the ‘URL-based sampling’ setting. You have to switch on the toggle for 'Ignore URLs with specific path and/or query parameters.
Here you can define URL paths that you would like to exclude from monitoring and alerting. I am not sure though, if this also prevents the x-dynatrace header from being set.
Short update to this:
This doesn’t work. URL-based sampling basically creates a new URL type with all the sampled requests being part of the domain and the exclusion rules just filter the requests out of the Dynatrace cluster, but do not prevent the x-dynatrace header from being placed.