Skip to content

Add programming language selector#1326

Merged
grcevski merged 7 commits into
open-telemetry:mainfrom
grcevski:add_language_selector
Feb 18, 2026
Merged

Add programming language selector#1326
grcevski merged 7 commits into
open-telemetry:mainfrom
grcevski:add_language_selector

Conversation

@grcevski
Copy link
Copy Markdown
Contributor

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:

services:
  instrument:
    - language: {go,rust}

With this configuration option OBI will instrument all services found on the host that are implemented in golang or rust.

I'll follow-up with a docs PR for opentelemetry.io when the change is merged.

Closes #1302

@grcevski grcevski requested a review from a team as a code owner February 18, 2026 14:50
Copy link
Copy Markdown
Contributor

@mariomac mariomac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! What about adding also an OTEL_EBPF_AUTO_TARGET_LANGUAGE environment variable?

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 43.58%. Comparing base (7475bff) to head (48486a4).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
pkg/appolly/discover/matcher.go 85.71% 1 Missing ⚠️
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              
Flag Coverage Δ
integration-test 21.48% <36.36%> (-0.01%) ⬇️
integration-test-arm 0.00% <0.00%> (ø)
integration-test-vm-x86_64-5.15.152 0.00% <0.00%> (ø)
integration-test-vm-x86_64-6.10.6 0.00% <0.00%> (ø)
k8s-integration-test 2.36% <0.00%> (-0.01%) ⬇️
oats-test 0.00% <0.00%> (ø)
unittests 44.37% <90.90%> (+0.08%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@grcevski
Copy link
Copy Markdown
Contributor Author

Amazing! What about adding also an OTEL_EBPF_AUTO_TARGET_LANGUAGE environment variable?

Good idea! I'll follow-up with a PR on that. It can be handy.

@grcevski grcevski merged commit 754e788 into open-telemetry:main Feb 18, 2026
61 checks passed
@grcevski grcevski deleted the add_language_selector branch February 18, 2026 17:04
@grcevski
Copy link
Copy Markdown
Contributor Author

Amazing! What about adding also an OTEL_EBPF_AUTO_TARGET_LANGUAGE environment variable?

Good idea! I'll follow-up with a PR on that. It can be handy.

Added here #1331

@MrAlias MrAlias added this to the v0.6.0 milestone Feb 23, 2026
@MrAlias MrAlias mentioned this pull request Mar 5, 2026
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.

Add language instrumentation selector

4 participants