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

Print long running work for debugging #554

Conversation

gregschohn
Copy link
Collaborator

Description

[Describe what this change achieves]

  • Category (Enhancement, New feature, Bug fix, Test fix, Refactoring, Maintenance, Documentation)
  • Why these changes are required?
  • What is the old behavior before changes and new behavior after changes?

Issues Resolved

[List any issues this PR will resolve]

Is this a backport? If so, please add backport PR # and/or commits #

Testing

[Please provide details of testing done: unit testing, integration testing and manual testing]

Check List

  • New functionality includes testing
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…ime that it is closed as a first-class feature of the coreUtilities tracing library.

A number of changes were made to existing interfaces to reduce the scope of 'naked' Spans so that it's easier to audit if they're being used directly to close spans.  The getCurrentSpan() needs to be public because it's in an interface and used internally, but it should really be private and require friend access only within its package.  However, I'm not sure how to do better guardrails in Java.

Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
# Conflicts:
#	TrafficCapture/trafficReplayer/src/main/java/org/opensearch/migrations/replay/TrafficReplayer.java
… from the business logic.

Some of the new class's constructors have been simplified/streamlined a bit at the expense of not creating a JsonTransfomer automatically.

Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
…class.

TopLevel deals with the total lifecycle (shutdown) of critical resources while Core does the orchestration between various top-level components.

Signed-off-by: Greg Schohn <greg.schohn@gmail.com>
Copy link

codecov bot commented Apr 6, 2024

Codecov Report

Attention: Patch coverage is 67.17063% with 152 lines in your changes are missing coverage. Please review.

Project coverage is 76.31%. Comparing base (5865ca3) to head (02027a1).
Report is 6 commits behind head on main.

Files Patch % Lines
...nsearch/migrations/replay/TrafficReplayerCore.java 72.16% 31 Missing and 23 partials ⚠️
...rch/migrations/replay/TrafficReplayerTopLevel.java 69.46% 40 Missing and 11 partials ⚠️
...ns/tracing/ActiveContextTrackerByActivityType.java 21.05% 15 Missing ⚠️
.../opensearch/migrations/replay/TrafficReplayer.java 0.00% 10 Missing ⚠️
...ch/migrations/tracing/CompositeContextTracker.java 27.27% 8 Missing ⚠️
...earch/migrations/tracing/ActiveContextTracker.java 54.54% 5 Missing ⚠️
...opensearch/migrations/tracing/BaseSpanContext.java 66.66% 0 Missing and 3 partials ⚠️
...arch/migrations/tracing/LoggingContextMonitor.java 0.00% 3 Missing ⚠️
...ficcapture/kafkaoffloader/KafkaCaptureFactory.java 50.00% 1 Missing ⚠️
...opensearch/migrations/tracing/RootOtelContext.java 83.33% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #554      +/-   ##
============================================
- Coverage     76.64%   76.31%   -0.34%     
- Complexity     1414     1432      +18     
============================================
  Files           155      161       +6     
  Lines          6033     6104      +71     
  Branches        543      543              
============================================
+ Hits           4624     4658      +34     
- Misses         1044     1078      +34     
- Partials        365      368       +3     
Flag Coverage Δ
unittests 76.31% <67.17%> (-0.34%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@gregschohn
Copy link
Collaborator Author

See #564

@gregschohn gregschohn closed this Apr 9, 2024
@gregschohn gregschohn deleted the PrintLongRunningWorkForDebugging branch April 11, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant