Closed RichardJECooke closed 2 months ago
Actually how to change 4317 isn't mentioned on the entire site:
hi @RichardJECooke!
are you looking for how to change the OTLP port that the Java agent sends data to?
or are you looking for how to change the OTLP port that the collector listens on?
The first one. This documentation I linked to is about starting the Java OpenTelemetry agent.
transferring this to the doc repo to see if we can make this easier to find
in the meantime, I believe this is the doc you're looking for: https://opentelemetry.io/docs/languages/java/configuration/#otlp-exporter-span-metric-and-log-exporters
What @trask mentions is correct, that is the Java-specific table for how to change the endpoint for export.
We do technically link to that page here: https://opentelemetry.io/docs/zero-code/java/agent/configuration/#sdk-autoconfiguration
However it's easy to see how it might get lost. One thing we could do is copy over some of the table into this page, or create a header related to exporter configuration and link to the table in the other page. Would that work @RichardJECooke?
Thanks.
The documentation has now been updated and a link has been added to the instrumentation repo readme pointing at the configuration page
Thanks @jaydeluca, sounds like this issue can be closed.
@RichardJECooke if you think your issue has not been addressed by the recent changes, please go ahead and reopen or raise a new issue, thank you once again for bringing this to our attention
Describe the bug
On this page, https://github.com/open-telemetry/opentelemetry-java-instrumentation?tab=readme-ov-file, you say "By default, the OpenTelemetry Java agent uses OTLP exporter configured to send data to OpenTelemetry collector at http://localhost:4317." and you link three times to the Java documentation at https://opentelemetry.io/docs/instrumentation/java/automatic/agent-config.
But nowhere on that page does it mention how to change the collector or port 4317.
1) How do we change it? 2) Please add this to the readme file and the documentation.