Skip to content
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

fix: remove refs to otel, other than the api #230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danielstokes
Copy link
Contributor

@danielstokes danielstokes commented Feb 28, 2025

Description

Removes Golang (replaces #229)
Removes Otel related injection which was specifically for golang
Switches to use current as the api version internally, which should make it easier to manager version upgrades 🤞

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • New feature / enhancement (non-breaking change which adds functionality)
  • Security fix
  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • Documentation has been updated
  • This change requires changes in testing:
    • unit tests
    • E2E tests

@danielstokes danielstokes requested a review from a team as a code owner February 28, 2025 19:19
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 84.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 62.04%. Comparing base (84864d2) to head (deefaff).

Files with missing lines Patch % Lines
internal/apm/helper.go 75.00% 2 Missing and 1 partial ⚠️
internal/controller/instrumentation_controller.go 0.00% 3 Missing ⚠️
internal/instrumentation/health.go 80.00% 1 Missing ⚠️
.../instrumentation/instrumentation_status_updater.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #230      +/-   ##
==========================================
+ Coverage   61.24%   62.04%   +0.80%     
==========================================
  Files          36       35       -1     
  Lines        2975     2664     -311     
==========================================
- Hits         1822     1653     -169     
+ Misses       1006      883     -123     
+ Partials      147      128      -19     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -30,7 +30,7 @@ const (
pythonInitContainerName = initContainerName + "-python"
)

var _ Injector = (*GoInjector)(nil)
var _ Injector = (*PythonInjector)(nil)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor fix

@@ -150,8 +150,6 @@ func (i *PhpInjector) Inject(ctx context.Context, inst v1beta1.Instrumentation,
pod.Spec.InitContainers = append(pod.Spec.InitContainers, initContainer)
}

pod = i.injectNewrelicEnvConfig(ctx, inst.Spec.Resource, ns, pod, firstContainer)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

minor fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant