Deploy this integration to send traces from your Zipkin installation to Logz.io.
Logz.io recommends that you use OpenTelemetry to gather trace transaction data from your system. Because of its versatility, OpenTelemetry has been widely adopted as the industry standard: OpenTelemetry can be equipped with many additional functionalities, one of which is collecting aggregated trace data. Beyond that, OpenTelemetry is set to be the best production-ready solution going forward.
This integration includes:
- Installing the OpenTelemetry collector with Logz.io exporter on your application host
- Configuring the collector to receive traces from your Zipkin installation and send them to Logz.io
On deployment, your Zipkin instrumentation captures spans from your application and forwards them to the collector, which exports the data to your Logz.io account.
Set up your locally hosted Zipkin installation to send traces to Logz.io
Before you begin, you’ll need:
- An application instrumented with a Zipkin installation
- An active account with Logz.io
Download and configure OpenTelemetry collector
Create a dedicated directory on the host of your application and download the OpenTelemetry collector that is relevant to the operating system of your host.
After downloading the collector, create a configuration file
config.yaml with the following parameters:
receivers: zipkin: endpoint: "0.0.0.0:9411" exporters: logzio: account_token: <<TRACING-SHIPPING-TOKEN>> #region: "<<LOGZIO_ACCOUNT_REGION_CODE>>" - (Optional): Your logz.io account region code. Defaults to "us". Required only if your logz.io region is different than US East. https://docs.logz.io/user-guide/accounts/account-region.html#available-regions processors: batch: extensions: pprof: endpoint: :1777 zpages: endpoint: :55679 health_check: service: extensions: [health_check, pprof, zpages] pipelines: traces: receivers: [zipkin] processors: [batch] exporters: [logzio]
<<TRACING-SHIPPING-TOKEN>> with the token of the account you want to ship to.
If your account is hosted in any region other than
LOGZIO_ACCOUNT_REGION_CODE> with the applicable region code.
Start the collector
Run the following command:
<path/to>/otelcontribcol_<VERSION-NAME> --config ./config.yaml
<path/to>with the path to the directory where you downloaded the collector.
<VERSION-NAME>with the version name of the collector applicable to your system, e.g.
Run the application
Run the application to generate traces.
Check Logz.io for your traces
Give your traces some time to get from your system to ours, and then open Tracing.