-
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
Sampling override applicationinsights-java-agent telemetryType requests not work #3949
Comments
By looking, the span attributes in the logs, i found that my key, value are not directely on the attributs list How can I access this value key ? |
are you getting any warnings from the Java agent on startup? it looks like you're missing a comma in your json, so I'd expect the Java agent to log this as a warning on startup |
On the first line no, i made a mistake on the copy. |
it seems that the span does not record the attributes, on the agent logs I see the attribute field empty attributes={} |
what about the log you pasted above? that one looked like it picked up
|
I think the key value url.path is not setter in the right place. it seems normal to me that the filter on the url.path attribute doesn't work, because it looks for values on attributes={} and not on attributes=AttributesMaps{data={}} How i can set this key/value in the attributes list ? |
these are opentelemetry resource attributes and are not supported by the sampling overrides
would you be able to create a small repro that we can look at to see what the issue might be? |
Ok, |
hi @serignemodou, thanks for the demo app. I ran it locally and hit How does it work for you locally (not in App Services)? thanks |
Hi @trask |
Are you using the Application Insights / App Services Integration? that will automatically add the -javaagent which will take precedence over the runtime attach, and so won't pick up your json configuration file |
Hi, |
Expected behavior
I want to
I'm following this document
Actual behavior
The override is ignored.
To Reproduce
I'm using
Below is my applicationinsights.json configuration:
**Logs result on app insights requests
As you can see, all the logs are collected, that's means the sampling override is ignored.
The text was updated successfully, but these errors were encountered: