-
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
agent.tags
parsing error for Elastic Cloud
#3351
Comments
|
@yurishkuro I fully agree, but it's what the Elastic folks are recommending for their integration with Jaeger agents. I'm just not sure why one method via the driver code works but |
Here's the relevant comment from the Elastic thread I mentioned: elastic/apm#212 (comment) |
in order to work around jaegertracing/jaeger#3351
* added ElasticAPM support * added docs for Elastic Cloud * had to pass a tag into the driver manually in order to work around jaegertracing/jaeger#3351
@Aaronontheweb I think you need @yurishkuro I think the use of process tags for this is not great. We needed a way to have jaeger-agent send auth tokens and couldn't find a better way. If you have any recommendations I'd be keen to hear them. Would you be open to a PR that adds an option to send gRPC request metadata? Something like |
sgtm. we already have a similar flag to read bearer token from file when talking to ES |
FWIW I did try that as well; same outcome. I'll report an issue on the Elastic APM tracker. |
any news on this issue? |
@pentago no news. Please open a topic at https://discuss.elastic.co/c/observability/apm/58. |
Describe the bug
While following the instructions for exporting spans from Jaeger Agents to Elastic Cloud elastic/apm#212, I've not been able to get the recommended
agent.tags
format for the given agent to parse correctly using CLI arguments or theJAEGER_TAGS
environment variable for the client.The agent starts up fine, but I get the following error whenever we attempt to transmit spans over gRPC:
This is because the bearer token included in the span tags was not propagated in the correct format - even if I hard code the
ELASTIC_APM_TOKEN
value into theagent.tags
value.However, if I make the following call using the Jaeger C# client:
Then that works fine and my spans arrive in Elastic Cloud no problem.
To Reproduce
Create an agent using the following configuration (using Kubernetes in my case):
Have a client propagate spans to it while using the
elastic-apm-auth=Bearer ${ELASTIC_APM_TOKEN}
tag - and if connected to Elastic Cloud you'll receive an authorization error. I'm not sure why you will - passing in the tag explicitly via the programmatic client configuration works fine, but not if you do it via environment variables or via theagent.tags
property.Expected behavior
The content and the format of the
elastic-apm-auth=Bearer ${ELASTIC_APM_TOKEN}
tag should be preserved.Edit: fixed my YAML - had the relevant part commented out while I was troubleshooting.
The text was updated successfully, but these errors were encountered: