Skip to content

Commit

Permalink
doc: add warning for otlp over grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
verysonglaa committed Aug 5, 2024
1 parent a13a2bb commit 99a17d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,21 @@ spec:
EOF
{{< /text >}}

{{< warning >}}
To actually receive traces, make sure your OpenTelemetry Collector service's gRPC port starts with the `grpc-` prefix, which is like:

{{< text syntax=yaml >}}
spec:
ports:
- name: grpc-otlp
port: 4317
protocol: TCP
targetPort: 4317
{{< /text >}}

Otherwise the traces may not be reported.
{{< /warning >}}

### Exporting via HTTP

In this example, traces will be exported via OTLP/HTTP to the OpenTelemetry Collector.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
source "content/en/boilerplates/snips/start-otel-collector-service.sh"
source "content/en/boilerplates/snips/trace-generation.sh"

! IFS=$'\n' read -r -d '' snip_exporting_via_grpc_2 <<\ENDSNIP
spec:
ports:
- name: grpc-otlp
port: 4317
protocol: TCP
targetPort: 4317
ENDSNIP

snip_install_otlp_http() {
cat <<EOF | istioctl install --set values.pilot.env.PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING=true -y -f -
apiVersion: install.istio.io/v1alpha1
Expand Down

0 comments on commit 99a17d8

Please sign in to comment.