Skip to content

Commit

Permalink
Improved readme
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Apr 5, 2022
1 parent d794c93 commit a22e412
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions extension/jaegerremotesampling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,26 @@ Note that the port `14250` will clash with the Jaeger Receiver. When both are us

Although this extension is derived from Jaeger, it can be used by any clients who can consume this standard, such as the [OpenTelemetry Java SDK](https://github.com/open-telemetry/opentelemetry-java/tree/v1.9.1/sdk-extensions/jaeger-remote-sampler).

At this moment, the `reload_interval` option is only effective for the `file` source. In the future, this property will be used to control a local cache for a `remote` source.

The `file` source can be used to load files from the local file system or from remote HTTP/S sources. The `remote` source must be used with a gRPC server that provides a Jaeger remote sampling service.

## Configuration

```yaml
extensions:
jaegerremotesampling:
grpc:
endpoint: :15251
source:
remote:
endpoint: jaeger-collector:14250
jaegerremotesampling/1:
http:
endpoint: :5878
source:
file: /etc/otel/sampling_strategies.json
reload_interval: 1s
file: /etc/otelcol/sampling_strategies.json
jaegerremotesampling/2:
source:
reload_interval: 1s
file: http://jaeger.example.com/sampling_strategies.json
```
A sampling strategy file could look like:
Expand Down

0 comments on commit a22e412

Please sign in to comment.