Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
Update name of trace sampled field recognized by Stackdriver Logging …
Browse files Browse the repository at this point in the history
…agent. (#181)

The field uses underscores instead of camel case.  See
GoogleCloudPlatform/fluent-plugin-google-cloud#307.
  • Loading branch information
sebright committed May 1, 2019
1 parent 5dd53b5 commit 780a522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion java/log_correlation/log4j2/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
-->
<KeyValuePair key="logging.googleapis.com/trace" value="$${ctx:traceId}"/>
<KeyValuePair key="logging.googleapis.com/spanId" value="$${ctx:spanId}"/>
<KeyValuePair key="logging.googleapis.com/traceSampled" value="$${ctx:traceSampled}"/>
<KeyValuePair key="logging.googleapis.com/trace_sampled" value="$${ctx:traceSampled}"/>
</JsonLayout>
</File>
</Appenders>
Expand Down

0 comments on commit 780a522

Please sign in to comment.