aspecto.rb
under config/initializers/
:aspecto_auth
and service_name
.service_name
OTEL_SERVICE_NAME
env
ASPECTO_ENV
production
/ staging
/ development
, etc.log_level
OTEL_LOG_LEVEL
ERROR
ERROR
/ WARN
/ INFO
, etc.sampling_ratio
ASPECTO_SAMPLING_RATIO
require_config_for_traces
ASPECTO_REQUIRE_CONFIG_FOR_TRACES
false
true
, the SDK will not trace anything until remote sampling configuration arrives (few hundreds ms). Can be used to enforce sampling configuration is always applied, with the cost of losing traces generated during service startupotel_exporter_otlp_traces_endpoint
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
extract_b3_context
ASPECTO_EXTRACT_B3_CONTEXT
false
true
when the service receives requests from another instrumented component that propagate context via B3 protocol multi or single header. For example: Envoy Proxy, Ambassador and Istioinject_b3_context_single_header
ASPECTO_INJECT_B3_CONTEXT_SINGLE_HEADER
false
true
when the service send traffic to another instrumented component that propagate context via B3 single header protocolinject_b3_context_multi_header
ASPECTO_INJECT_B3_CONTEXT_MULTI_HEADER
false
true
when the service send traffic to another instrumented component that propagate context via B3 multi header protocol. For example: Envoy Proxy, Istio