This is the OTLP HTTP exporter.
Value
logger_provider_http$new() returns an otel::otel_logger_provider
object.
logger_provider_http$options() returns a named list, the current
values for all options.
Options
HTTP exporter options
url: OTLP URL to send telemetry data to. Value is set fromthe
optsargument, needs to point to the logs endpoint, orOTEL_EXPORTER_OTLP_LOGS_ENDPOINTenvironment variable, needs to point to the logs endpoint, orOTEL_EXPORTER_OTLP_ENDPOINTenvironment variable +/v1/logs, orthe default is
http://localhost:4318/v1/logs.
content_type: data format used, JSON or binary. Possible values:"http/json","http/protobuf". Value if set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_PROTOCOLenvironment variable, orthe
OTEL_EXPORTER_OTLP_PROTOCOLenvironment variable, orthe default is
"http/protobuf".
json_bytes_mapping: encoding used for trace id and span id. Possible values:"hexid","base64","hex". Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_JSON_BYTES_MAPPINGenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_JSON_BYTES_MAPPINGenvironment variable, orthe default is
"hexid".
use_json_name: whether to use json name of protobuf field to set the key of json. A flag. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_USE_JSON_NAMEenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_USE_JSON_NAMEenvironment variable, orthe default is
FALSE.
console_debug: whether to print debug messages to the console. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_CONSOLE_DEBUGenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_CONSOLE_DEBUGenvironment variable, orthe default is
FALSE.
timeout: HTTP timeout in milliseconds. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_TIMEOUT}environment variable, orthe
OTEL_EXPORTER_OTLP_TIMEOUTenvironment variable, orthe default is
10000.
http_headers: additional HTTP headers to send, e.g.Authorizationis commonly used. A named character vector withoutNAvalues. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_HEADERSenvironment variable, orthe
OTEL_EXPORTER_OTLP_HEADERSenvironment variable, orthe default is an empty named character vector. When specified in environment variables, it must be a comma separated list of headers, each in the
header=valueform.
ssl_insecure_skip_verify: whether to disable SSL. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_SSL_INSECURE_SKIP_VERIFYenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_SSL_INSECURE_SKIP_VERIFYenvironment variable, orthe default is
FALSE.
ssl_ca_cert_path: CA certificate, path to a file. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CERTIFICATEenvironment variable, orthe
OTEL_EXPORTER_OTLP_CERTIFICATEenvironment variable, orthe default is “.
ssl_ca_cert_string: CA certificate, as a string. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE_STRINGenvironment variable, orthe
OTEL_EXPORTER_OTLP_CERTIFICATE_STRINGenvironment variable, orthe default is “.
ssl_client_key_path: SSL client key, path to a file. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEYenvironment variable, orthe
OTEL_EXPORTER_OTLP_CLIENT_KEYenvironment variable, orthe default is “.
ssl_client_key_string: SSL client key as a string. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY_STRINGenvironment variable, orthe
OTEL_EXPORTER_OTLP_CLIENT_KEY_STRINGenvironment variable, orthe default is “.
ssl_client_cert_path: SSL client certificate, path to a file. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATEenvironment variable, orthe
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATEenvironment variable, orthe default is “.
ssl_client_cert_string: SSL client certificate, as a string. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE_STRINGenvironment variable, orthe
OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE_STRINGenvironment variable, orthe default is “.
ssl_min_tls: minimum TLS version. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_SSL_MIN_TLSenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_SSL_MIN_TLSenvironment variable, orthe default is “.
ssl_max_tls: maximum TLS version. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_SSL_MAX_TLSenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_SSL_MAX_TLSenvironment variable, orthe default is “.
ssl_cipher: TLS cipher. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_SSL_CIPHERenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_SSL_CIPHERenvironment variable, orthe default is “.
ssl_cipher_suite: TLS cipher suite. Empty string uses the system default. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_SSL_CIPHER_SUITEenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_SSL_CIPHER_SUITEenvironment variable, orthe default is “.
compression: compression to use. Possible values are"none","gzip". Value is the set fromthe
optsargument, orthe
OTEL_EXPORTER_OTLP_LOGS_COMPRESSIONenvironment variable, orthe
OTEL_EXPORTER_OTLP_COMPRESSIONenvironment variable, orthe default is
none.
retry_policy_max_attempts: the maximum number of call attempts, including the original attempt. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_RETRY_POLICY_MAX_ATTEMPTSenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_RETRY_POLICY_MAX_ATTEMPTSenvironment variable, orthe default is
5.
retry_policy_initial_backoff: the maximum initial back-off delay between retry attempts. The actual backoff delay is uniform random between zero and this. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_RETRY_POLICY_INITIAL_BACKOFFenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_RETRY_POLICY_INITIAL_BACKOFFenvironment variable, orthe default is
1000.
retry_policy_max_backoff: the maximum backoff places an upper limit on exponential backoff growth. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_RETRY_POLICY_MAX_BACKOFFenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_RETRY_POLICY_MAX_BACKOFFenvironment variable, orthe default is
5000.
retry_policy_backoff_multiplier: the backoff will be multiplied by this value after each retry attempt. Value is set fromthe
optsargument, orthe
OTEL_R_EXPORTER_OTLP_LOGS_RETRY_POLICY_BACKOFF_MULTIPLIERenvironment variable, orthe
OTEL_R_EXPORTER_OTLP_RETRY_POLICY_BACKOFF_MULTIPLIERenvironment variable, orthe default is
1.5.
Batch processor options
max_queue_size: The maximum buffer/queue size. After the size is reached, spans are dropped. Must be positive. Value is set fromthe
optsargument, orthe
OTEL_BSP_MAX_QUEUE_SIZEenvironment variable, orthe default is
2048.
max_export_batch_size: the maximum batch size of every export. It must be smaller or equal to max_queue_size. Must be positive. Value is set fromthe
optsargument, orthe
OTEL_BSP_MAX_EXPORT_BATCH_SIZEenvironment variable, orthe default is
512.
schedule_delay: the time interval between two consecutive exports, in milliseconds. Value is set fromthe
optsargument` orthe
OTEL_BSP_SCHEDULE_DELAYenvironment variable, orthe default is
5000.
Examples
logger_provider_http$options()
#> $url
#> [1] "http://localhost:4318/v1/logs"
#>
#> $content_type
#> http/protobuf
#> 1
#>
#> $json_bytes_mapping
#> [1] 0
#>
#> $use_json_name
#> [1] FALSE
#>
#> $console_debug
#> [1] FALSE
#>
#> $timeout
#> [1] 10
#>
#> $http_headers
#> named character(0)
#>
#> $ssl_insecure_skip_verify
#> [1] FALSE
#>
#> $ssl_ca_cert_path
#> [1] ""
#>
#> $ssl_ca_cert_string
#> [1] ""
#>
#> $ssl_client_key_path
#> [1] ""
#>
#> $ssl_client_key_string
#> [1] ""
#>
#> $ssl_client_cert_path
#> [1] ""
#>
#> $ssl_client_cert_string
#> [1] ""
#>
#> $ssl_min_tls
#> [1] ""
#>
#> $ssl_max_tls
#> [1] ""
#>
#> $ssl_cipher
#> [1] ""
#>
#> $ssl_cipher_suite
#> [1] ""
#>
#> $compression
#> [1] "none"
#>
#> $retry_policy_max_attempts
#> [1] 5
#>
#> $retry_policy_initial_backoff
#> [1] 1000
#>
#> $retry_policy_max_backoff
#> [1] 5000
#>
#> $retry_policy_backoff_multiplier
#> [1] 1.5
#>
#> $max_queue_size
#> [1] 2048
#>
#> $max_export_batch_size
#> [1] 512
#>
#> $schedule_delay
#> [1] 5000
#>