-
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 is always Routing to default exporter when receiver is oltp http #20913
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
You need to provide the following configuration for the otlp receiver, that should fix your configuration
|
ok let me try that - Thanks @kovrus |
@kovrus - Even after updating config as suggested above. I still see routing to default value. |
Hi @jpkrohling, it looks like in the current state the processor does not support http metadata that is not from the grpc server, would you accept a PR to add this functionality. We can still default to the default grpc extraction using the grpc metadata module and then in the case that it does not return anything try to extract it from client.Info. |
Thank you for the PR. The direction is good, just need one more test. |
**Description:** <Describe what has changed.> <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> Hi all, This enables the processor to perform context based routing for payloads that are received on the http server of the otlp receiver. It defaults to the original grpc metadata extraction but if it is not able to extract the grpc metadata, it will then attempt to extract it from client.Info. Currently the routing processor will always use the default route if the payload was received through the http server. **Link to tracking Issue:** <Issue number if applicable> resolves #20913 **Testing:** <Describe what testing was performed and which tests were added.> Added test cases for traces, metrics and logs to includes testing context based routing when the metadata is in client.Info **Documentation:** <Describe the documentation added.>
Component(s)
processor/routing
What happened?
Description
Routing Processor is routing to default exporter when the receiver is oltp http.
Steps to Reproduce
See the below configuration of routing processor
Routing process is ignoring http header"otel-exporter-lob" values "one/two" and always routes to default exporters.
Expected Result
When the http header "otel-exporter-lob" is "one" route to following exporters
exporters: [logging, otlp/one]
When the http header "otel-exporter-lob" is "two" route to following exporters
exporters: [logging, otlp/two]
Actual Result
Routing process is ignoring http header"otel-exporter-lob" values "one/two" and always routes to default exporters.
Collector version
latest
Environment information
Environment
OS: Amazon Linux
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
Router works when the the receiver is using "oltp" grpc protocol
The text was updated successfully, but these errors were encountered: