API7 Docs
ObservabilityZipkin

Zipkin Configuration

Static Configurations

By default, zipkin plugin NGINX variables configuration is set to false in the default configuration.

The file to update depends on how the gateway is deployed:

For host or Docker deployments, configure the following settings:

config.yaml
plugin_attr:
  zipkin:
    set_ngx_var: true

Then reload the gateway for changes to take effect.

Parameters

See plugin common configurations for configuration options available to all plugins.

  • endpointstring · required

    Zipkin span endpoint to POST to, such as http://127.0.0.1:9411/api/v2/spans.

  • sample_rationumber · required

    Valid values: between 0.00001 and 1 inclusive

    Frequency to sample requests. Setting to 1 means sampling every request.

  • service_namestring · optional · default: APISIX

    Service name for the Zipkin reporter to be displayed in Zipkin.

  • server_addrstring · optional · default: the value of $server_addr

    Valid values: IPv4 address

    IPv4 address for the Zipkin reporter. For example, you can set this to your external IP address.

  • span_versioninteger · optional · default: 2

    Valid values: 1 or 2

    Version of the span type.