Update java default proto and port in automatic.md (#4030)

This commit is contained in:
jason plumb 2024-02-21 03:05:30 -08:00 committed by GitHub
parent b91667e8ac
commit 46b5af68d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -194,7 +194,7 @@ metadata:
name: demo-instrumentation
spec:
exporter:
endpoint: http://demo-collector:4317
endpoint: http://demo-collector:4318
propagators:
- tracecontext
- baggage
@ -205,10 +205,10 @@ EOF
```
By default, the Instrumentation resource that auto-instruments Java services
uses `otlp` with the `grpc` protocol. This means that the configured endpoint
must be able to receive OTLP over `grpc`. Therefore, the example uses
`http://demo-collector:4317`, which connects to the `grpc` port of the
otlpreceiver of the Collector created in the previous step.
uses `otlp` with the `http+protobuf` protocol. This means that the configured
endpoint must be able to receive OTLP over `http` via `protobuf` payloads.
Therefore, the example uses `http://demo-collector:4318`, which connects to the
`http` port of the otlpreceiver of the Collector created in the previous step.
#### Excluding auto-instrumentation {#java-excluding-auto-instrumentation}
@ -231,7 +231,7 @@ metadata:
name: demo-instrumentation
spec:
exporter:
endpoint: http://demo-collector:4317
endpoint: http://demo-collector:4318
propagators:
- tracecontext
- baggage