-
Notifications
You must be signed in to change notification settings - Fork 199
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
Filter/Sample requests based on captured header value via app insights config using sampling override feature #2285
Comments
hi @kaynat12, I would expect the sampling override to work, can you put together a small repro that we can use to troubleshoot / identify the issue? |
hi @trask , Thank you for the reply, I have created one sample application and have added you for the repository access, could you take a look? |
hi @trask , could you find any solution? |
hi @kaynat12! yes, the problem is that |
hi @kaynat12, if you have a chance, give the latest SNAPSHOT build a try: https://github.com/microsoft/ApplicationInsights-Java/suites/6753934261/artifacts/258125728 |
hi @trask , the sampling is working now, thank you! |
3.3.0-BETA.2 has been released with this fix |
Is your feature request related to a problem? Please describe.
I am using 3.2.11 app insights agent and could capture header values as below in config file,
"preview": {
"captureHttpServerHeaders": {
"requestHeaders": [ "test"] }
I could see that values are stored under custom dimensions as http.request.header.test in requests table
I want to filter out the requests with header 'test' value as true. I tried sampling as below but doesn't seems to work
"sampling": {
"overrides": [{
"attributes": [ {
"key": "http.request.header.test",
"value": "true",
"matchType": "strict"}],
"percentage": 0
}
I tried with key as customDimensions.["http.request.header.test"] also, still same issue.
Describe the solution you would like
The text was updated successfully, but these errors were encountered: