-
Notifications
You must be signed in to change notification settings - Fork 125
Camunda Pyzeebe Instrumentation #1385
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1385 +/- ##
==========================================
- Coverage 81.57% 81.01% -0.56%
==========================================
Files 205 206 +1
Lines 23217 23346 +129
Branches 3670 3697 +27
==========================================
- Hits 18939 18914 -25
- Misses 3055 3168 +113
- Partials 1223 1264 +41 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Posting a partial review-ran out of time for today but I'll review the tests tomorrow.
newrelic/hooks/external_pyzeebe.py
Outdated
elif method_name == "deploy_resource": | ||
resources = list(args) | ||
if len(resources) == 1 and isinstance(resources[0], (list, tuple)): | ||
resources = list(resources[0]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this one-just cast it to a list after the value comes back from the generic call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hmstepanek - do you mean to just remove the if
check and simply:
elif method_name == "deploy_resource":
resources = list(args)
if resources:
trace._add_agent_attribute("zeebe.client.resourceCount", len(resources))
if len(resources) == 1:
trace._add_agent_attribute("zeebe.client.resourceFile", str(resources[0]))
This PR adds support for the Camunda Pyzeebe Module
@worker.task
/@router.task
Need help with writing some tests for this instrumentation though