Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Start adding a demo for opencensus-contrib-log-correlation-log4j. - #1382

Closed
sebright2 wants to merge 4 commits into
census-instrumentation:masterfrom
sebright2:log4j-log-correlation-demo
Closed

Start adding a demo for opencensus-contrib-log-correlation-log4j.#1382
sebright2 wants to merge 4 commits into
census-instrumentation:masterfrom
sebright2:log4j-log-correlation-demo

Conversation

@sebright2

@sebright2 sebright2 commented Aug 22, 2018

Copy link
Copy Markdown
Contributor

This PR is an early version of a demo for the library in #1371. I'm planning to add the demo to https://github.com/census-ecosystem/opencensus-experiments after the library is released instead of merging this PR. I also need to improve the readme. The first commit is from #1371.

@g-easy g-easy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done figuring out all the log4j stuff.

This looks good to me, but I'm afraid I don't know much about Java logging.

The screenshots are great!

<JsonLayout compact="true" eventEol="true">

<!-- This section reads the trace ID, span ID, and sampled fields from the Log4j context -->
<!-- and add them to the JSON log entry as key-value pairs. It uses the special JSON -->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add -> adds

<JsonLayout compact="true" eventEol="true">

<!-- This section reads the trace ID, span ID, and sampled fields from the Log4j context -->
<!-- and add them to the JSON log entry as key-value pairs. It uses the special JSON -->

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't have multi-line comments?

@sebright2

Copy link
Copy Markdown
Contributor Author

Thanks! I addressed the two comments, and I'll clean this up further when #1371 is done.

@sebright2 sebright2 added the action required The pull request is blocked by something other than a need for code review. label Aug 22, 2018
@sebright2 sebright2 assigned sebright2 and unassigned g-easy Aug 22, 2018
@sebright2
sebright2 force-pushed the log4j-log-correlation-demo branch 2 times, most recently from f60ab51 to 43d726d Compare August 24, 2018 02:20
@sebright2
sebright2 force-pushed the log4j-log-correlation-demo branch from 43d726d to 264ca3f Compare August 28, 2018 03:21
sebright2 added a commit to sebright2/opencensus-experiments that referenced this pull request Aug 28, 2018
This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released.  See the readme for instrumentations for running the demo.
sebright2 added a commit to sebright2/opencensus-experiments that referenced this pull request Aug 28, 2018
This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released.  See the readme for instrumentations for running the demo.
sebright2 added a commit to sebright2/opencensus-experiments that referenced this pull request Aug 28, 2018
This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released yet.  See the readme for instructions for running the demo.
sebright2 added a commit to sebright2/opencensus-experiments that referenced this pull request Aug 28, 2018
This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released yet.  See the readme for instructions for running the demo.
@sebright2 sebright2 removed the action required The pull request is blocked by something other than a need for code review. label Aug 28, 2018
@sebright2

Copy link
Copy Markdown
Contributor Author

I made a snapshot release of opencensus-java and moved this demo to opencensus-experiments: census-ecosystem/opencensus-experiments#60

@sebright2 sebright2 closed this Aug 28, 2018
sebright2 added a commit to census-ecosystem/opencensus-experiments that referenced this pull request Aug 30, 2018
#60)

This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released yet.  See the readme for instructions for running the demo.
rghetia pushed a commit to census-ecosystem/opencensus-experiments that referenced this pull request Dec 12, 2018
#60)

This commit adds a demo for log correlation using OpenCensus and Log4j.  The
code was copied from
census-instrumentation/opencensus-java#1382 and modified
to be built as an independent project.  It currently depends on a snapshot
version of opencensus-java, since opencensus-contrib-log-correlation-log4j
hasn't been released yet.  See the readme for instructions for running the demo.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants