Closed gidesh closed 2 years ago
Hi @boostchicken, do you have a chance to take a look?
cc @pmm-sumo
Sure do, thanks for the heads up @dmitryax
Weird all the unit tests are passing, this will take some digging, I will have to write some integration tests for this one
Hey @gidesh I dont see a reference to hoff.api.platform-apps in your logging output? Is it a tag (service.name)? or where is it set on your Span?
@boostchicken I'm working with @gidesh on this. Not sure why the service.name isn't there maybe we didnt set it on our app.
We orignally tried dropping the span for all /healthz urls but that was also unsucessful.
processors:
filter:
spans:
exclude:
match_type: regex
span_names:
- /healthz
We did set it with env var OTEL_SERVICE_NAME: "hoff-api.platform-apps"
@boostchicken I'm working with @gidesh on this. Not sure why the service.name isn't there maybe we didnt set it on our app.
We orignally tried dropping the span for all /healthz urls but that was also unsucessful.
processors: filter: spans: exclude: match_type: regex span_names: - /healthz
This wont work, its not a regex, please change it to strict.
We did set it with env var
OTEL_SERVICE_NAME: "hoff-api.platform-apps"
Please make sure it is working, the code looks for a service.name attribute to drop it, I don't see one here, I can't drop it if the metadata is not in the span.
This wont work, its not a regex, please change it to strict.
Changing it to the following made no difference.
processors:
filter:
spans:
exclude:
match_type: strict
span_names:
- /healthz
@gidesh your traces pipeline is missing the processor; you have:
processors: [memory_limiter, k8sattributes, batch]
While it should have been:
processors: [memory_limiter, k8sattributes, filter, batch]
Thanks @pmm-sumo, apologies we missed that part :man_facepalming:
Happy to close the issue, as it was a mistake from our side
Describe the bug We are using a relatively new feature of filter processor to drop spans released on 23rd June https://github.com/open-telemetry/opentelemetry-collector-contrib/commit/4be2219303197649342e3434057db642c8653b01
We built the otel-collector binary using https://github.com/open-telemetry/opentelemetry-collector/tree/main/cmd/builder and
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.54.1-0.20220623193207-4be221930319
in the manifest and deployed our docker image into GKE. The otel collector worked with this new binary however we were not seeing spans getting dropped for a certain microservice.Steps to reproduce We have a Kubernetes microservice called
hoff-api
and a namespace calledplatform-apps
and we are trying to drop the spans created for it byWhat did you expect to see? No spans sent to Elastic APM/Grafana Tempo by otel-collector from
hoff-api.platform-apps
What did you see instead? Still seeing thehoff-api.platform-apps
span in Elastic APM/Grafana Tempo by otel-collectorWhat version did you use? otel-collector-0.54
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/processor/filterprocessor v0.54.1-0.20220623193207-4be221930319
What config did you use?
Environment Kubernetes 1.20
Additional context Deploying otel collector into kubernetes as a
Deployment
, we enableddebug
logging using logging exporter and see logs which shows thehoff.api.platform-apps
in there