Skip to content

fix: override otel service name and version - #1956

Merged
toddbaert merged 1 commit into
open-feature:mainfrom
open-feature-forking:fix/override-otel-attributes
Apr 30, 2026
Merged

toddbaert merged 1 commit into
open-feature:mainfrom
open-feature-forking:fix/override-otel-attributes

Conversation

@leakonvalinka

@leakonvalinka leakonvalinka commented Apr 30, 2026 •

Copy link
Copy Markdown
Member

Setting service.name or service.version via OTEL_RESOURCE_ATTRIBUTES (or OTEL_SERVICE_NAME) now correctly overrides the values flagd sets programmatically

Fixes #1938

@netlify

netlify Bot commented Apr 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for polite-licorice-3db33c canceled.

Name Link
🔨 Latest commit 292fc20
🔍 Latest deploy log https://app.netlify.com/projects/polite-licorice-3db33c/deploys/69f34e3906497b0008914588

@sonarqubecloud

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the telemetry resource builder to include attributes from environment variables using resource.WithFromEnv(). A corresponding test case was added to ensure that environment variables like OTEL_RESOURCE_ATTRIBUTES correctly override the default service name and version. I have no feedback to provide.

@leakonvalinka
leakonvalinka marked this pull request as ready for review April 30, 2026 12:48
@leakonvalinka
leakonvalinka requested review from a team as code owners April 30, 2026 12:48
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Apr 30, 2026

@toddbaert toddbaert left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks again @leakonvalinka

@toddbaert
toddbaert merged commit ec4ff12 into open-feature:main Apr 30, 2026
14 checks passed
@github-actions github-actions Bot mentioned this pull request Apr 30, 2026
toddbaert added a commit that referenced this pull request Apr 30, 2026
🤖 I have created a release *beep* *boop*
---


<details><summary>flagd: 0.15.5</summary>

##
[0.15.5](flagd/v0.15.4...flagd/v0.15.5)
(2026-04-30)


### 🐛 Bug Fixes

* handle missing/null targeting keys in fractional evaluator
([#1949](#1949))
([651c7bb](651c7bb))
* override otel service name and version
([#1956](#1956))
([ec4ff12](ec4ff12))
* update jsonlogic for and/or bug
([#1957](#1957))
([6edd6e8](6edd6e8))
* various custom operator conformance fixes
([#1950](#1950))
([670c91c](670c91c))
</details>

<details><summary>flagd-proxy: 0.9.5</summary>

##
[0.9.5](flagd-proxy/v0.9.4...flagd-proxy/v0.9.5)
(2026-04-30)


### 🧹 Chore

* resolve open dependabot security alerts
([#1954](#1954))
([c5adbb7](c5adbb7))
</details>

<details><summary>core: 0.15.5</summary>

##
[0.15.5](core/v0.15.4...core/v0.15.5)
(2026-04-30)


### 🐛 Bug Fixes

* handle missing/null targeting keys in fractional evaluator
([#1949](#1949))
([651c7bb](651c7bb))
* override otel service name and version
([#1956](#1956))
([ec4ff12](ec4ff12))
* update jsonlogic for and/or bug
([#1957](#1957))
([6edd6e8](6edd6e8))
* various custom operator conformance fixes
([#1950](#1950))
([670c91c](670c91c))


### 🧹 Chore

* resolve open dependabot security alerts
([#1954](#1954))
([c5adbb7](c5adbb7))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Signed-off-by: OpenFeature Bot <[email protected]>
Signed-off-by: Todd Baert <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Todd Baert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Cannot Override OpenTelemetry Service Name or Version

4 participants