File tree Expand file tree Collapse file tree
examples/instrumentation-quickstart Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ services:
2121 - OTEL_EXPORTER_OTLP_ENDPOINT=http://otelcol:4317
2222 - OTEL_SERVICE_NAME=otel-quickstart-spring-boot
2323 - OTEL_METRIC_EXPORT_INTERVAL=5000
24- - GOOGLE_CLOUD_PROJECT
2524 volumes :
2625 - logs:/var/log:rw
2726 depends_on :
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ receivers:
4646 - type : regex_parser
4747 parse_from : body["logging.googleapis.com/trace"]
4848 parse_to : body
49- regex : projects/.+/traces/ (?P<trace_id>.*)
49+ regex : (?P<trace_id>.*)
5050 trace :
5151 span_id :
5252 parse_from : body["logging.googleapis.com/spanId"]
Original file line number Diff line number Diff line change 2323 <provider class =" net.logstash.logback.composite.loggingevent.LoggingEventPatternJsonProvider" >
2424 <pattern >
2525 {
26- "logging.googleapis.com/trace": "projects/${GOOGLE_CLOUD_PROJECT}/traces/ %mdc{trace_id}",
26+ "logging.googleapis.com/trace": "%mdc{trace_id}",
2727 "logging.googleapis.com/spanId": "%mdc{span_id}",
2828 "logging.googleapis.com/trace_sampled": "#asBoolean{%replace(%mdc{trace_flags}){'01', 'true'}}"
2929 }
You can’t perform that action at this time.
0 commit comments