Skip to content

Commit

Permalink
add eventEol=true
Browse files Browse the repository at this point in the history
  • Loading branch information
mackjmr committed Nov 27, 2023
1 parent 6723374 commit 2e8dcb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/go_server_dd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func main() {
mux.HandleFunc("/inject", func(w http.ResponseWriter, r *http.Request) {
_, otelSpan := otelTracer.Start(r.Context(), "otel_api_span")
log.WithFields(log.Fields{
"dd.span_id": otelSpan.SpanContext().SpanID().String(),
"dd.trace_id": otelSpan.SpanContext().TraceID().String(),
"dd.span_id": otelSpan.SpanContext().SpanID().String(),
"dd.trace_id": otelSpan.SpanContext().TraceID().String(),
"service": "go-server-dd",
"env": "otel-ingest-staging",
}).Info("Doing work in server")
Expand Down
5 changes: 1 addition & 4 deletions src/java_client_otel/app/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Configuration status="WARN">
<Appenders>
<Console name="ConsoleJSONAppender" target="SYSTEM_OUT">
<JsonLayout complete="false" compact="true">
<JsonLayout complete="false" compact="true" eventEol="true">
<KeyValuePair key="service" value="java-client-otel" />
<KeyValuePair key="env" value="otel-staging" />
<KeyValuePair key="dd.trace_id" value="$${ctx:trace_id}" />
Expand All @@ -13,8 +13,5 @@
<Logger name="java_client_otel" level="info" additivity="true">
<AppenderRef ref="ConsoleJSONAppender"/>
</Logger>
<Root level="error">
<AppenderRef ref="ConsoleJSONAppender"/>
</Root>
</Loggers>
</Configuration>

0 comments on commit 2e8dcb8

Please sign in to comment.