Skip to content

Commit

Permalink
blocking recipe
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
  • Loading branch information
jpkrohling committed Nov 2, 2023
1 parent 1944969 commit 3f94e63
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
6 changes: 5 additions & 1 deletion recipes/simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ This shows how to split the Collector configuration in multiple files. Things to
- `include.yaml` file has a reference to `include-debug-exporter.yaml`, which resides on the same directory
- however, the path to `include-debug-exporter.yaml` is relative to working directory that started the command. Try running this example from both the root of this repository and from _this_ repository to see the difference.

You can test this configuration in the exact same way as the [Simplest](#simplest) recipe.
You can test this configuration in the exact same way as the [Simplest](#simplest) recipe.

## Blocking

This shows how to disable the default asynchronous behavior of the Collector. We are disabling the sending queue, meaning that the Collector will block until the data is sent to the configured exporters. The retry mechanism is still enabled, so if the exporter fails to send the data, the Collector will retry until it succeeds, or until the timeout is reached.
14 changes: 3 additions & 11 deletions recipes/simple/blocking.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@ receivers:
grpc:

exporters:
logging:
otlp:
endpoint: example.com:4317
sending_queue:
enabled: false

processors:

extensions:

service:
extensions:
pipelines:
traces/1:
traces:
receivers: [otlp]
processors:
exporters: [otlp]

traces/2:
receivers: [otlp]
processors:
exporters: [logging]

0 comments on commit 3f94e63

Please sign in to comment.