Add programming language selector#1326
Conversation
mariomac
left a comment
There was a problem hiding this comment.
Amazing! What about adding also an OTEL_EBPF_AUTO_TARGET_LANGUAGE environment variable?
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1326 +/- ##
==========================================
+ Coverage 43.51% 43.58% +0.06%
==========================================
Files 305 305
Lines 32864 32877 +13
==========================================
+ Hits 14301 14329 +28
+ Misses 17643 17628 -15
Partials 920 920
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Good idea! I'll follow-up with a PR on that. It can be handy. |
Added here #1331 |
This PR implements the second part of the issue, to take the input from the language detector and use it to be able to select programming languages to instrument. This can be especially useful for deployment in non Kubernetes environments alongside the OpenTelemetry Injector or with the OpenTelemetry operator in daemonset mode.
Here's an example on how we can use this:
With this configuration option OBI will instrument all services found on the host that are implemented in
golangorrust.I'll follow-up with a docs PR for opentelemetry.io when the change is merged.
Closes #1302