-
Notifications
You must be signed in to change notification settings - Fork 53
OpenTelemetry support in worker #1049
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
Conversation
- Report opentelemetry capability at environemnt reload
This is a draft PR for a number of reasons. We need to discuss:
Also, there is a comment in there (RequestProcessor#400) that suggests some uncertainty about whether all worker capabilities need to be reported in EnvironmentReloadRequest. Reading through the protobuf spec, the host defaults to "merge" mode where new capabilities are added but old ones are retained, so that is no longer a concern. I'll pull that comment out with the next commit to this branch |
- Outline of unit testing, more is needed
|
||
internal class PowerShellModuleDetector | ||
{ | ||
public static bool IsPowerShellModuleLoaded(System.Management.Automation.PowerShell _pwsh, ILogger _logger, string moduleName) |
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.
Naming convention: we use names starting with underscore for class fields only. Parameter names should be in camelCase without underscore characters
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.
I will not block the PR on this, but please clean it up, now or later
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.
LGTM
* Detect if OpenTelemetry module is present and environment variable is set * Pre-instrument invocations with a span using Invocation ID + parent span ID * Forward all user logs to the module to be sent to OTel endpoint (cherry picked from commit f0c7eec)
Initial commit of changes needed to support OpenTelemetry in the worker
resolves #1048
Pull request checklist
release_notes.md
Additional information
Additional PR information