-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Routing Processor not working properly with Azuremonitoring #29495
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Pinging code owners for processor/routing: @jpkrohling. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hello @scavassa-yld, I'm not seeing anything obvious as to why this isn't working. Can you confirm that you're not getting any log messages from the routing processor while the collector is running? I'd expect some logs to be showing whether the routing is successful or not, or some confirmation that it's attempting to work. I'm especially confused that the data is going to an exporter that isn't even registered in the router processor. Also, if you share a sample trace that you're trying to route I could test it locally as well. |
While this is under investigation, you could try to use the routing connector instead to see if that works for your use-case. The eventual plan is to deprecate the processor in favor of the connector, so it may be good to move to using the connector sooner rather than later. |
Hello @crobert-1 , when you say provide a trace, do you just mean the trace that we're posting to the collector? Or are you talking about a specific set of debug logs? For the routing we simply added the header 'x-code' with one of the values for the routing eg, 'any-other-key' |
Yes to both. To the first, an example of a trace that you're posting to the collector that isn't being routed properly would be very helpful. For the second, I was wondering if there were any logs coming from the routing processor while the collector is running. If there were any they may be helpful in seeing where things went awry. |
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 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. |
I'm closing this, but feel free to provide the additional information and reopen. |
Component(s)
connector/routing, exporter/azuremonitor
What happened?
Description
Setting the Routing Processor with AzureMonitorExporter Traces are not using the correct Exporter, instead of it, its routing to the first Exporter registered when running Docker-Compose Up command.
Steps to Reproduce
include_metadata
as trueFull configuration can be found on OpenTelemetry Collector configuration session.
After running
docker-compose
up we can check the Exporters are registered in a random order - the order we define then on yaml file will not afect the registering/logs here.Then when
docker-otel-collector
receives the input data with the Header that match the Routing Statement, it will use the first Exporter registered, that we can check on the log above. And for this very case, any data will routed toazuremonitor/second
.Expected Result
with the HEADER x-code = mycode, I expect it to be routed to azuremonitor/first
Actual Result
Here is the log after sending data to docker-otel-collector endpoint with HEADER x-code = mycode
Collector version
0.87.0
Environment information
Environment
OS: Docker Linux
OpenTelemetry Collector configuration
Additional context
1 - I have added the include_metadata: true to Receivers´ OTLP session.
2 - Exporter azuremonitor/second is not even registered in the Routing session
3 - If you run the Docker-Compose multiple times, the order of those exporters will change and regarding it, the Fracgory.go will chose the first Exporter registered.
4 - Have tested the two approaches mentioned in Routing´s README document, both will result in the same.
The text was updated successfully, but these errors were encountered: