-
Notifications
You must be signed in to change notification settings - Fork 226
feat: parts of the gRPC istrumentation #1303
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a79087a
feat(grpc): write the client tracing instrumentation in the intercept…
michal-kazmierczak 031081e
feat(grpc): migrate from rspec to minitest
michal-kazmierczak cfbbeb7
feat(grpc): introduce Appraisals
michal-kazmierczak 7386022
fix(grpc): remove active_support dependency
michal-kazmierczak 74bbba6
Update grpc.rb
michal-kazmierczak 55f49f2
Update README.md
michal-kazmierczak 7ed2c46
ci: add (probably) missing grpc gem in the ci-instrumentation
michal-kazmierczak 60c02df
cI: grpc is not included in the all gem yet
michal-kazmierczak fda0183
ci: skip grpc from the CI for now
michal-kazmierczak 50a6358
a better approach towards client testing
michal-kazmierczak 85e7148
add an unversioned Appraisal
michal-kazmierczak 9e7b51f
Update instrumentation/grpc/README.md
michal-kazmierczak 6c65513
Update instrumentation/grpc/lib/opentelemetry/instrumentation/grpc/pa…
michal-kazmierczak 7bf266b
Update instrumentation/grpc/test/test_helper.rb
michal-kazmierczak 4953c46
add opentelemetry-test-helpers and rake as development dependencies
michal-kazmierczak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # Copyright The OpenTelemetry Authors | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| appraise 'grpc-1.68' do | ||
| gem 'grpc', '~> 1.68.0' | ||
| end | ||
|
|
||
| appraise 'grpc-latest' do | ||
| gem 'grpc' | ||
| end | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
instrumentation/grpc/lib/opentelemetry/instrumentation/grpc/patches/client_stub.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # Copyright The OpenTelemetry Authors | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| module OpenTelemetry | ||
| module Instrumentation | ||
| module Grpc | ||
| module Patches | ||
| # Module to be prepended to force gRPC to use the client interceptor by | ||
| # default so the user doesn't have to manually add it when initializing a client. | ||
| module ClientStub | ||
| def initialize(host, creds, **args) | ||
| interceptors = args[:interceptors] || [] | ||
| interceptors.unshift(Interceptors::ClientTracer.new) unless interceptors.any? do |interceptor| | ||
| interceptor.is_a?(Interceptors::ClientTracer) | ||
| end | ||
| args[:interceptors] = interceptors | ||
|
|
||
| super | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
instrumentation/grpc/spec/example/controllers/example_api_controller.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
instrumentation/grpc/spec/example/proto/example_api_services_pb.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.