Skip to content

Commit

Permalink
OTLP change default port number
Browse files Browse the repository at this point in the history
  • Loading branch information
TomRoSystems committed Jan 19, 2021
1 parent 880e392 commit 0884e23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/otlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ receivers:
otlp:
protocols:
grpc:
endpoint: localhost:55680
endpoint: localhost:4317
exporters:
zipkin:
endpoint: "http://localhost:9411/api/v2/spans"
Expand All @@ -26,6 +26,6 @@ service:
exporters: [zipkin]
```

Note that the OTLP exporter connects to the Collector at `localhost:55680` by default. This can be changed with first argument from command-line, for example: `./example_otlp gateway.docker.internal:55680`.
Note that the OTLP exporter connects to the Collector at `localhost:4317` by default. This can be changed with first argument from command-line, for example: `./example_otlp gateway.docker.internal:4317`.

Once you have the Collector running, see [CONTRIBUTING.md](../../CONTRIBUTING.md) for instructions on building and running the example.
6 changes: 3 additions & 3 deletions exporters/otlp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ auto exporter = std::unique_ptr<sdktrace::SpanExporter>(new otlp::OtlpExporter(o

### Configuration options

| Option | Default |
| ------------ |------------------ |
| `endpoint` | `localhost:55680` |
| Option | Default |
| ------------ |----------------- |
| `endpoint` | `localhost:4317` |

## Example

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace otlp
struct OtlpExporterOptions
{
// The endpoint to export to. By default the OpenTelemetry Collector's default endpoint.
std::string endpoint = "localhost:55680";
std::string endpoint = "localhost:4317";
};

/**
Expand Down

0 comments on commit 0884e23

Please sign in to comment.