Skip to content
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

Configuration omissions from Using Opentelemetry guide example? #34965

Open
wabrit opened this issue Jul 24, 2023 Discussed in #34964 · 1 comment
Open

Configuration omissions from Using Opentelemetry guide example? #34965

wabrit opened this issue Jul 24, 2023 Discussed in #34964 · 1 comment

Comments

@wabrit
Copy link

wabrit commented Jul 24, 2023

Discussed in #34964

Originally posted by wabrit July 24, 2023
I've just been working through the 3.2-latest Using Open Telemetry guide and ran into issues when trying to push spans to the jaegertracing/all-in-one:latest docker image suggested in the example.

With the suggested configuration, I received no spans in jaegar at all. I think that was because the default value of quarkus.otel.traces.exporter is cdi, and it needed to be set to otlp.

Once I did that, the running image log reported the following error:

 {"level":"info","ts":1690210946.4101171,"caller":"grpc@v1.56.2/server.go:932","msg":"[core][Server #5] grpc: Server.Serve 
failed to create ServerTransport: connection error: desc = \"transport: http2Server.HandleStreams 
received bogus greeting from client: \\\"POST / HTTP/1.1\\\\r\\\\nUser-Ag\\\"\"","system":"grpc","grpc_log":true}
Gracefully stopping... (press Ctrl+C again to force)

which looked like a protocol error.

I fixed this by setting quarkus.exporter.otlp.traces.protocol=grpc (the default being http/protobuf). Once that was done, spans started appearing in jaegar.

Unless I've missed something, this feels like a doc bug; it should list those 2 extra properties as a necessary part of the configuration.

@quarkus-bot
Copy link

quarkus-bot bot commented Jul 24, 2023

/cc @brunobat (opentelemetry), @radcortez (opentelemetry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

1 participant