I want to filter some endpoints and omit them from telemetry. I put opentelemetry-javaagent.jar in project folder and specify path in JAVA_OPTS variable. I run my application with next parameters:
JAVA_OPTS = -javaagent:/Users/...../Desktop/myProject/opentelemetry-javaagent.jar -Dotel.service.name\=MyApp -Dotel.tracer.exporter\=logging -Dotel.metrics.exporter\=logging -Dconfig.file=/Users/...../Desktop/myProject/config.yaml
All works fine, I see all requests in Graphana, but I want to exclude some endpoints from telemetry. I specify these endpoints in config.yaml and specify path to it in JAVA_OPTS. config.yaml is next:
processors:
filter:
spans:
exclude:
match_type: regexp
services:
- MyApp
span_names:
- *
After I run my app it still trace all endpoints but I expect that nothing will be traced. Looks like config.yaml doesn't accepted. What's wrong in my config? Thnks.