Skip to content

Sample Jetty server application to demonstrate Datadog auto instrumentation of three Java logging frameworks (log4j, log4j2, and slf4j).

Notifications You must be signed in to change notification settings

yafernandes/instrumented-logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instrumented Logs

This simple app demostrates Datadog capabilities of auto instrumenting log4j, log4j2, and slf4j.

You can test by running the command below on your local machine.

docker run --rm --name instrumented-logs yaalexf/instrumented-logs

You can also run it on a Kubernetes cluster.

kubectl run instrumented-logs --image=yaalexf/instrumented-logs

⚠️ Log4j instrumentation is not automatically detected by standard pipelines. Edit Preprocessing for JSON logs and add mdc.dd.trace_id to Trace Id attributes.

About

Sample Jetty server application to demonstrate Datadog auto instrumentation of three Java logging frameworks (log4j, log4j2, and slf4j).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published