From a81fb66b044c9587b6d8b33052677a563c21bb4c Mon Sep 17 00:00:00 2001 From: Stefan Prisca Date: Tue, 12 May 2020 13:03:53 +0200 Subject: [PATCH] Update example/otel-collector/README.md Co-authored-by: Tyler Yahn --- example/otel-collector/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/example/otel-collector/README.md b/example/otel-collector/README.md index 4e5436435..627940cf9 100644 --- a/example/otel-collector/README.md +++ b/example/otel-collector/README.md @@ -60,7 +60,9 @@ defer func() { _ = exp.Stop() }() ``` -This will initialize the exporter with the default configuration. In this configuration, it will try to connect to an otlp receiver at the address `localhost:55680`. If your OpenTelemetry Collector is running at a different address, use the [otlp.WithAddress](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp?tab=doc#WithAddress) function to change the default address. +This will initialize the exporter with the default configuration. +In this configuration, it will try to connect to an OTLP receiver at the address `localhost:55680`. +If your OpenTelemetry Collector is running at a different address, use the [`otlp.WithAddress`](https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp?tab=doc#WithAddress) function to change the default address. Feel free to remove the blocking operation, but it might come in handy when testing the connection. Also, make sure to close the exporter before the app exits.