Skip to content

Commit 5b637ba

Browse files
authored
Fix example config for Pulsar exporter, units are nanoseconds (open-telemetry#2185)
- setting partitions_auto_discovery_interval to 1 causes a storm of CommandPartitionedTopicMetadata requests to brokers. The broker doesn't log these requests and it's hard to detect the issue. The default value in the client is 1 minute which is 60*10^9. Set the example value to the default. - setting batching_max_publish_delay to 10 will make batching uneffective since the unit is nanoseconds. The default value in the client is 10 milliseconds which is 10^7. Set the example value to the default.
1 parent 964d9d1 commit 5b637ba

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

internal/exporter/pulsarexporter/testdata/config.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ exporters:
2323
compression_level: default
2424
batch_builder_type: 1
2525
disable_batching: false
26-
batching_max_publish_delay: 10
26+
# unit is nanoseconds (10^-9), set to 10 milliseconds in nanoseconds
27+
batching_max_publish_delay: 10000000
2728
batching_max_messages: 1000
2829
batching_max_size: 128000
29-
partitions_auto_discovery_interval: 1
30+
# unit is nanoseconds (10^-9), set to 1 minute in nanoseconds
31+
partitions_auto_discovery_interval: 60000000000
3032

3133
service:
3234
pipelines:

0 commit comments

Comments
 (0)