Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instrumentation for glassfish-jul-extension logging library #2049

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

jasonjkeller
Copy link
Contributor

@jasonjkeller jasonjkeller commented Sep 13, 2024

Resolves #2027

GlassFish 7 provides it’s own implementation of the JUL Logger class which causes the JUL instrumentation to fail for log forwarding/log metrics, though it does work for log decorating. This PR adds a new instrumentation module to weave the GlassFishLogger to support log forwarding/log metrics.

Related integration test PR is here: https://github.com/newrelic/java-agent-integration-tests/pull/284

Here's a test run of this branch running against the new AITs: https://github.com/newrelic/newrelic-java-agent/actions/runs/10857259232/job/30133452461

@jasonjkeller jasonjkeller self-assigned this Sep 13, 2024
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.57%. Comparing base (8308389) to head (403390d).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2049   +/-   ##
=========================================
  Coverage     70.57%   70.57%           
  Complexity     9875     9875           
=========================================
  Files           829      829           
  Lines         39945    39945           
  Branches       6078     6078           
=========================================
  Hits          28191    28191           
- Misses         9024     9026    +2     
+ Partials       2730     2728    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@obenkenobi obenkenobi self-requested a review September 16, 2024 18:58
@jasonjkeller jasonjkeller merged commit 857433f into main Sep 16, 2024
111 checks passed
@jasonjkeller jasonjkeller deleted the glassfish7-logging branch September 16, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Glassfish 7 with JUL does not properly forward logs to NR
4 participants