feat: add environment parameter to SetupOTelSDK function #5

Merged
argoyle merged 1 commits from add-environment-parameter-setupotel-sdk into main 2025-05-30 11:59:01 +00:00
argoyle commented 2025-05-30 11:54:12 +00:00 (Migrated from gitlab.com)

Updates the SetupOTelSDK function to include an environment
parameter. This change ensures that the OpenTelemetry setup
now captures and sets the service environment along with
the service name and version. It enhances observability
by providing more context about the application's
deployment environment.

Updates the SetupOTelSDK function to include an environment parameter. This change ensures that the OpenTelemetry setup now captures and sets the service environment along with the service name and version. It enhances observability by providing more context about the application's deployment environment.
argoyle (Migrated from gitlab.com) scheduled this pull request to auto merge when all checks succeed 2025-05-30 11:54:25 +00:00
argoyle commented 2025-05-30 11:58:07 +00:00 (Migrated from gitlab.com)

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (cf7ddf9) to head (dbec05b).

Files with missing lines Patch % Lines
otel.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main      #4   +/-   ##
=====================================
  Coverage   0.00%   0.00%           
=====================================
  Files          3       3           
  Lines        108     108           
=====================================
  Misses       108     108           

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.
## [Codecov](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/pull/4?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny) Report Attention: Patch coverage is `0%` with `2 lines` in your changes missing coverage. Please review. > Project coverage is 0.00%. Comparing base [(`cf7ddf9`)](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/commit/cf7ddf9df1dd1edc65adb329f28569ef5e781cd5?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny) to head [(`dbec05b`)](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/commit/dbec05bdf7f7120aeedffc447ef16c7bad64270a?dropdown=coverage&el=desc&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny). | [Files with missing lines](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/pull/4?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny) | Patch % | Lines | |---|---|---| | [otel.go](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/pull/4?src=pr&el=tree&filepath=otel.go&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny#diff-b3RlbC5nbw==) | 0.00% | [2 Missing :warning: ](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/pull/4?src=pr&el=tree&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny) | <details><summary>Additional details and impacted files</summary> ```diff @@ Coverage Diff @@ ## main #4 +/- ## ===================================== Coverage 0.00% 0.00% ===================================== Files 3 3 Lines 108 108 ===================================== Misses 108 108 ``` </details> [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gl/unboundsoftware:shiny/otelsetup/pull/4?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=gitlab&utm_content=comment&utm_campaign=pr+comments&utm_term=shiny). :loudspeaker: Have feedback on the report? [Share it here](https://gitlab.com/codecov-open-source/codecov-user-feedback/-/issues/4). <details><summary> :rocket: New features to boost your workflow: </summary> - :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems. </details>
argoyle (Migrated from gitlab.com) merged commit into main 2025-05-30 11:59:02 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shiny/otelsetup#5