Skip to content

remove deprecated otel interceptors#2561

Merged
vroldanbet merged 1 commit intomainfrom
remove-deprecated-otel-middleware
Sep 11, 2025
Merged

remove deprecated otel interceptors#2561
vroldanbet merged 1 commit intomainfrom
remove-deprecated-otel-middleware

Conversation

@vroldanbet
Copy link
Copy Markdown
Contributor

Description

This commit removes the use of deprecated OTEL Go SDK gRPC interceptors. Those were superfluous since we were already making use of the new StatsHandler installed in the gRPC server.

I also identified that OTel tracing was missing in the test server, so I added it.
I also noticed logs were not showing up because we had not correctly wired up the logger used by the middleware.

Testing

I verified that traces are being correctly collected via otel using Jaeger, and that the TraceID shows up in the logs. Also tested the grpc Gateway, but did not verify the Dispatch API.

References

Follow up to #2556

@vroldanbet vroldanbet self-assigned this Sep 11, 2025
@github-actions github-actions bot added area/cli Affects the command line area/dependencies Affects dependencies area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) area/api http Affects the HTTP Gateway API labels Sep 11, 2025
@vroldanbet vroldanbet force-pushed the remove-deprecated-otel-middleware branch from 37f77ac to ab2c854 Compare September 11, 2025 09:20
This commit removes the usage of deprecated otel go SDK
gRPC interceptors. Those were superfluous since we
were already making use of the new StatsHandler
installed in the gRPC server.

I verified that traces are being correctly collected
via otel, and that the TraceID shows up in the logs.
Also tested the grpc Gateway, but did not verify
the Dispatch API.

I also identified this was missing in the testserver,
so I added it, along with missing request logs.
@vroldanbet vroldanbet force-pushed the remove-deprecated-otel-middleware branch from ab2c854 to 5684c22 Compare September 11, 2025 09:30
@codecov
Copy link
Copy Markdown

codecov bot commented Sep 11, 2025

Codecov Report

❌ Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.69%. Comparing base (dbe5d5e) to head (5684c22).

Files with missing lines Patch % Lines
pkg/cmd/testserver/testserver.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2561      +/-   ##
==========================================
- Coverage   77.70%   77.69%   -0.00%     
==========================================
  Files         439      439              
  Lines       53526    53519       -7     
==========================================
- Hits        41586    41578       -8     
- Misses       9351     9352       +1     
  Partials     2589     2589              

☔ 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.

@vroldanbet vroldanbet marked this pull request as ready for review September 11, 2025 10:40
@vroldanbet vroldanbet requested a review from a team as a code owner September 11, 2025 10:40
Copy link
Copy Markdown
Member

@josephschorr josephschorr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

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

LGTM, had a question

Comment thread internal/gateway/gateway.go
@vroldanbet vroldanbet added this pull request to the merge queue Sep 11, 2025
Merged via the queue into main with commit 97a6a1d Sep 11, 2025
45 of 46 checks passed
@vroldanbet vroldanbet deleted the remove-deprecated-otel-middleware branch September 11, 2025 16:43
@github-actions github-actions bot locked and limited conversation to collaborators Sep 11, 2025
@jzelinskie jzelinskie added the kind/bug Something is broken or regressed label Sep 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/api http Affects the HTTP Gateway API area/cli Affects the command line area/dependencies Affects dependencies area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) kind/bug Something is broken or regressed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants