From the course: Mastering Observability with OpenTelemetry

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Debugging and zPages

Debugging and zPages

- [Instructor] This video should give you a little more insight into collector configuration, debugging and diagnostics. First, I want to show you how you can add a debugging exporter to the collector. This will help you when you're not sure if the collector is really receiving data or if you want to introspect this data. For that, I open the collector config, and there I scroll down to the exporters, and I will just add my entry before the Jaeger exporter. And as you know, in Yaml, indents are important, so watch what I'm doing. So I indent here, and I add debug. So this is the debug exporter. I can set the verbosity, I set it to detailed, and then I can make two settings for the sampling rate. The first is sampling_initial, and I set it to one. This is the number of messages initially logged each second. Then I can set sampling_thereafter. And I set this to five. This is the sampling rate after the initial messages are logged. This means that every fifth message will now be logged…

Contents