For security purposes, you are advised to use the security mode and TLS authentication.
Before you perform the operations in Starting the Trace Forwarding Process, set the target profiling server through environment variables.
The following four protocols are supported:
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT=http://xxx:xxx/v1/traces # Configure the IP address and port number for data forwarding, for example, http://localhost:4318/v1/traces.
export OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT=https://xxx:xxx/v1/traces # Configure the IP address and port number for data forwarding, for example, https://localhost:4318/v1/traces. export OTEL_EXPORTER_OTLP_CERTIFICATE=/home/certificates/ca/ca.crt # Set the absolute path of the certificate. The directory owner, file owner, and current user match. The directory permission is 700 and the file permission is 600.
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc" export OTEL_EXPORTER_OTLP_ENDPOINT=http://xxx:xxx # Configure the IP address and port number for data forwarding, for example, http://localhost:4317.
export OTEL_EXPORTER_OTLP_PROTOCOL="grpc" export OTEL_EXPORTER_OTLP_ENDPOINT=https://xxx:xxx # Configure the IP address and port number for data forwarding, for example, https://localhost:4317. export OTEL_EXPORTER_OTLP_CERTIFICATE=/home/certificates/ca/ca.crt # Set the absolute path of the certificate. The directory owner, file owner, and current user match. The directory permission is 700 and the file permission is 600.