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 gRPC server instrumentation detection of incoming headers #558

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

MrAlias
Copy link
Contributor

@MrAlias MrAlias commented Dec 13, 2023

Fix #557

The frame parameter position of operateHeaders changed in v1.60.0 of google.golang.org/grpc. Inject the parameter position based on version detection.

@MrAlias MrAlias changed the title Fix gRPC server inst detection of incoming headers Fix gRPC server instrumentation detection of incoming headers Dec 13, 2023
Fix open-telemetry#557

The frame parameter position of operateHeaders changed in v1.60.0 of
google.golang.org/grpc. Inject the parameter position based on version
detection.
@MrAlias
Copy link
Contributor Author

MrAlias commented Dec 13, 2023

Verified this is backwards compatible by manually updating internal/test/e2e/grpc/Dockerfile:

FROM golang:1.21.5
WORKDIR /sample-app
COPY . .
RUN go mod init go.opentelemetry.io/auto/internal/test/e2e/grpc && go mod tidy && go get google.golang.org/[email protected] && go build -o main

and successfully running the gRPC fixture tests locally.

@MrAlias MrAlias marked this pull request as ready for review December 13, 2023 17:01
@MrAlias MrAlias requested a review from a team December 13, 2023 17:01
@MrAlias MrAlias mentioned this pull request Dec 13, 2023
@MrAlias MrAlias merged commit 1505fb1 into open-telemetry:main Dec 13, 2023
15 checks passed
@MrAlias MrAlias deleted the support-grpc-v1.60 branch December 13, 2023 18:11
@MrAlias MrAlias added this to the unspecified milestone Jan 24, 2025
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.

How do we instrumented method's arguments changing?
2 participants