github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/docs/misc/tracing.md (about)

     1  # Distributed Tracing
     2  
     3  `Janus` uses [OpenCensus](https://opencensus.io) as the standard way to trace requests. It can be used for monitoring microservices-based distributed systems:
     4  
     5  - Distributed context propagation
     6  - Distributed transaction monitoring
     7  - Root cause analysis
     8  - Service dependency analysis
     9  - Performance / latency optimization
    10  
    11  OpenCensus supports several tracing backend systems (i.e. [exporters](https://opencensus.io/exporters/supported-exporters/go/)) which are:
    12  - Azure Monitor
    13  - Honeycomb.io
    14  - AWS X-Ray
    15  - Datadog
    16  - Jaeger
    17  - Stackdriver
    18  - Zipkin
    19  
    20  Currently, only Jaeger exporter is available in `Janus`.
    21  
    22  ```toml
    23  # Tracing Configuration
    24  
    25  [tracing]
    26    # Backend system to export traces to
    27    #
    28    # Default: None
    29    #
    30    Exporter = "jaeger"
    31    
    32    # Service name used in the backend
    33    #
    34    # Default: "janus"
    35    #
    36    ServiceName = "janus"
    37    
    38    # If set to false, trace metadata set in incoming requests will be
    39    # added as the parent span of the trace.
    40    #
    41    # See the following link for more details:
    42    # https://godoc.org/go.opencensus.io/plugin/ochttp#Handler 
    43    #
    44    # Default: true
    45    #
    46    IsPublicEndpoint = true
    47    
    48    # SamplingStrategy specifies the sampling strategy
    49    #
    50    # Valid Values: "probabilistic", "always", "never"
    51    #
    52    # Default: "probabilistic"
    53    #
    54    SamplingStrategy = "probabilistic"
    55    
    56    # SamplingParam is an additional value passed to the sampler.
    57    #
    58    # Valid Values:
    59    #   - for "always" and "never" sampler, this value is unused
    60    #   - for "probabilistic" sampler, a probability between 0 and 1
    61    #
    62    # Default: "0.15"
    63    #
    64    SamplingParam = "0.15"
    65    
    66    [tracing.jaeger]
    67      # SamplingServerURL is the address to the sampling server
    68      #
    69      # Default: None
    70      #
    71      SamplingServerURL: "localhost:6832"
    72  ```