Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 3.75 KB

ENV_VARS.md

File metadata and controls

33 lines (29 loc) · 3.75 KB

Environment Variables

Agents can be configured using environment variables:

Name Description
HT_SERVICE_NAME Identifies the service/process running e.g. "my service"
HT_REPORTING_ENDPOINT Represents the endpoint for reporting the traces For ZIPKIN reporter type use http://api.traceable.ai:9411/api/v2/spans For OTLP reporter type use http://api.traceable.ai:4317
HT_REPORTING_SECURE When true, connects to endpoints over TLS.
HT_REPORTING_TOKEN User specific token to access Traceable API
HT_REPORTING_CERT_FILE Certificate file containing the CA to verify the server's certificate. This is for private certificates. If this is set then secure above should also be set to true.
HT_REPORTING_METRIC_ENDPOINT Represents the endpoint for reporting the metrics. For OTLP metric reporter type use http://api.traceable.ai:4317
HT_REPORTING_ENABLE_GRPC_LOADBALANCING When true, modifies grpc resolver to use dns instead of passthrough and configure round robin client side loadbalancing
HT_DATA_CAPTURE_HTTP_HEADERS_REQUEST When false it disables the capture for the request in a client/request operation
HT_DATA_CAPTURE_HTTP_HEADERS_RESPONSE When false it disables the capture for the response in a client/request operation
HT_DATA_CAPTURE_HTTP_BODY_REQUEST When false it disables the capture for the request in a client/request operation
HT_DATA_CAPTURE_HTTP_BODY_RESPONSE When false it disables the capture for the response in a client/request operation
HT_DATA_CAPTURE_RPC_METADATA_REQUEST When false it disables the capture for the request in a client/request operation
HT_DATA_CAPTURE_RPC_METADATA_RESPONSE When false it disables the capture for the response in a client/request operation
HT_DATA_CAPTURE_RPC_BODY_REQUEST When false it disables the capture for the request in a client/request operation
HT_DATA_CAPTURE_RPC_BODY_RESPONSE When false it disables the capture for the response in a client/request operation
HT_DATA_CAPTURE_BODY_MAX_SIZE_BYTES Is the maximum size of captured body in bytes. Default should be 131_072 (128 KiB).
HT_DATA_CAPTURE_BODY_MAX_PROCESSING_SIZE_BYTES Is maximum size of body being processed by filters in bytes. Default should be 1_048_576 (1MB). For uncompressed bodies we capture all bytes up to body_max_processing_size_bytes in memory and pass that through the filter. For compressed and GRPC bodies, if the size of the body is larger than this, we ignore it entirely, otherwise we decompress/decode the body and then pass it to the filter.
HT_DATA_CAPTURE_ALLOWED_CONTENT_TYPES Array of allowed content type substrings to record default should be json, x-www-form-urlencoded ex: ["json"] will record any request bodies that have a content-type header that includes "json". The values should be separated by ,.
HT_PROPAGATION_FORMATS List the supported propagation formats e.g. HT_PROPAGATION_FORMATS="B3,TRACECONTEXT".
HT_ENABLED When false, disables the agent
HT_JAVAAGENT_FILTER_JAR_PATHS Is the list of path to filter jars, separated by ,. The values should be separated by ,.
HT_TELEMETRY_STARTUP_SPAN_ENABLED When true, an internal span is created and exported when the agent is initialized and started. It's useful to denote when the application the agent is in started.
HT_TELEMETRY_METRICS_ENABLED Whether to capture metrics or not. The metrics will be otel go metrics. See https://github.com/open-telemetry/opentelemetry-go/tree/main/metric
HT_GOAGENT_USE_CUSTOM_BSP Use the custom batch_span_processor adapted from the one in opentelemetry go and supports some additional metrics