All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.traces.package-info Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2019 IBM All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

/**
 * Supports collection of traces
 *
 * 

This creates traces at the root level of chaincode calls. * *

To enable traces ensure that there is a standard format Java properties file called `config.props` in the root of * your contract code. For example this path * *

 * myjava - contract - project / java / src / main / resources / config.props
 * 
* * This should contain the following * *
 * CHAINCODE_TRACES_ENABLED=true
 * 
* * The traces enabled flag will turn on default traces logging. (it's off by default). * *

If no file is supplied traces are not enabled, the values shown for the thread pool are used. * *

Open Telemetry To use Open Telemetry, set the following properties: * *

 * CHAINCODE_TRACES_ENABLED=true
 * CHAINCODE_TRACES_PROVIDER=org.hyperledger.fabric.traces.impl.OpenTelemetryTracesProvider
 * 
* * Additionally, you can set properties after the specification: * https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/sdk-environment-variables.md * *

Example: * *

 * OTEL_EXPORTER_OTLP_ENDPOINT=otelcollector:4317
 * OTEL_EXPORTER_OTLP_INSECURE=true
 * 
*/ package org.hyperledger.fabric.traces;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy