Enabling Tracing for OpenTelemetry Collector
- Ensure that you can connect to the OpenTelemetry Collector.
- To use this feature for TIBCO Cloud Integration deployments, ensure that the OpenTelemetry Collector is reachable from app containers.
If the connection to OpenTelemetry Collector is lost, traces during that time duration are not collected.
Note: - Install an observability vendor tool of your choice: Jaeger, Zipkin, Datadog, and so on.
Mandatory Configuration Parameters
To enable tracing by using OpenTelemetry Collector, set the following mandatory parameters:
Name | Default | Description |
---|---|---|
FLOGO_OTEL_TRACE
|
False | Enables tracing by using OpenTelemetry Collector. |
FLOGO_OTEL_OTLP_ENDPOINT
|
None |
Specifies the OpenTelemetry protocol (OTLP) receiver endpoint for OpenTelemetry Collector. Supported protocols are:
|
Optional Configuration Parameters
You can also use some optional configuration parameters when tracing apps using OpenTelemetry Collector. Here are some commonly used parameters and their descriptions:
Name | Default | Description |
---|---|---|
FLOGO_OTEL_TRACE_ATTRIBUTES
|
None |
Add one or more custom attributes to the trace. The format is key-value pairs separated by commas. For example, to filter based on the deployment type and deployment cluster, you can use:
|
FLOGO_OTEL_OTLP_HEADERS
|
None |
Set one or more custom gRPC or HTTP headers in the request to the OpenTelemetry Collector. The format is key-value pairs separated by commas. For example:
|
FLOGO_OTEL_TLS_SERVER_CERT
|
None |
If TLS is enabled for OpenTelemetry protocol receiver, set PEM-encoded server or CA. You can configure a path to the certificate or use base64-encoded certificate value. A file path must be prefixed with For example:
You can also encrypt base64 encoded certificate value by using either TIBCO Cloud Integration platform API or by using app executable and set it to the environment variable with prefix For example:
For details about encryption, see Encryption using App executable or Encryption using TIBCO Cloud Platform API. . When this certificate is not set, an unsecure connection is established with OpenTelemetry Collector. |