Skip to content

Commit

Permalink
undo one collector config change, add issue ID to TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
aabmass committed Apr 18, 2024
1 parent b2e696e commit e7dc090
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 5 additions & 7 deletions examples/instrumentation-quickstart/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ receivers:
fatal3: alert
fatal4: emergency

# TODO(aaronabbott): uncomment once the log4j2 config is correctly outputing the
# logging.googleapis.com/trace_sampled value
## set trace_flags to SAMPLED if GCP attribute is set to true
# - type: add
# field: body.trace_flags
# value: "01"
# if: body["logging.googleapis.com/trace_sampled"] == true
# set trace_flags to SAMPLED if GCP attribute is set to true
- type: add
field: body.trace_flags
value: "01"
if: body["logging.googleapis.com/trace_sampled"] == true

# parse the trace context fields from GCP attributes
- type: regex_parser
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<Configuration status="WARN">
<Appenders>
<Console name="Console" target="SYSTEM_OUT">
<!-- TODO(#331): output logging.googleapis.com/trace_sampled as a boolean -->
<!-- [START opentelemetry_instrumentation_setup_logging] -->
<!-- Format JSON logs for the Cloud Logging agent
https://cloud.google.com/logging/docs/structured-logging#special-payload-fields -->
Expand Down

0 comments on commit e7dc090

Please sign in to comment.