-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Inconsistency behaviour on filter processor #18756
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
@kedare can you provide a sample of what your data looks like? It could also be good to verify the data in the pipeline is exactly what you are expecting by using the logging exporter with Is It is also possible something is erroring and data being dropped as a result of the error. Do your collector logs include any errors? |
I am not setting the I will try to get you the proper data on monday, as we only do this kind of request from k8s cluster and not on local environment. But I digged a little bit on a local environment with another type of requests and I can't see any This is what I get from a request
Is that normal that there are missing attributes ? Also I did not see any errors in the logs |
I suspect I can't explain anything about processors:
filter/cardiolib-skip-blob-requests:
traces:
span:
- 'instrumentation_scope.name == "opentelemetry.instrumentation.requests" and resource.attributes["service.name"] == "cardiolib"' Your example didn't include anything about the Resource, so I can't make any guarantees that
I don't actually see |
Thank you, inseed that was the issue :)
For the |
@kedare I suspect it is coming from something on the resource. All OTLP data is associated to a resource, can you see yours? |
But I think the resource is static and global to the application ? |
I can't make any claims on how Tempo works, but within the context of the collector the data is in OTLP format within the processors so the spans are definitely associated to a Resource. The |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been closed as inactive because it has been stale for 120 days with no activity. |
Component(s)
processor/filter
What happened?
Description
I have been trying to setup a filter to drop a few spans from my traces, matching the following conditions (
AND
).*\.blob\.core\.windows\.net
service.name
==cardiolib
otel.library.name
==opentelemetry.instrumentation.requests
I have been following the documentation and tried to ways to achieve this
With this filter, somehow, everything is dropped (from all services), I can't explain why.
If I change the span filter to this one instead
'attributes["otel.library.name"] == "opentelemetry.instrumentation.requests" and resource.attributes["service.name"] == "cardiolib"'
Then nothing gets dropped, I don't get how this IsMatch can affect the whole pipeline as it looks like it's not even looking forn the rest of the conditions ?
The documentations says:
But from what I understand, this concerns the list of conditions under the
span
attribute and not the conditions in the list element itself ? (If so, theand
statement is useless?)I also tried to use the attribute filters this way but it doesn't have any effect either (with full fqdn instead of regexp to test if that was not a regexp issue)
Steps to Reproduce
Expected Result
Actual Result
Collector version
otel/opentelemetry-collector-contrib:0.67.0
Environment information
Environment
Running on Kubernetes, datadog upstream
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: