opentelemetry-instrumentation-grpc 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d379641e62009cb6b68ce4fde2b6bfe37267871243d800e34c10b781a49e9ba
4
- data.tar.gz: 2cc9812a81fce4a0f2460666558a54477fc1c025d446bbb798578f6451ef1c6d
3
+ metadata.gz: 26efaa070d7b860b93a139d4f4b09914537a084a3e209f2758895ea8afd6fc50
4
+ data.tar.gz: 43f1a935e75e418f27ca7eb494e9582ef4c12c4a9232165057842a0d2998ccd1
5
5
  SHA512:
6
- metadata.gz: db650e002cf6baadf21d1263187237bc265d3b80ba64afbd2314330a0657ff66e525a843ce3e8c7097e9bee7e55e4ed5be92d08ad7bfb2ed02804d9861598554
7
- data.tar.gz: 713e4600dbdc1dd4d6fe5455a73e476b121016132bea65fa704668ac497e2a02a694fe73213ad29e149d6f9ad87dd14b1c27ae6bafacda2c7827ab6e8140b688
6
+ metadata.gz: 8dd98ebe3d2e55426129068208c4fc89b0d9f943eca69bd5198fd2938e392b343a93bfb06c42c3dd8b8a7565b7a6a91139e25e0d648a11030c7bfa77e33cb1c4
7
+ data.tar.gz: 8a2543040e4cbd6fcf8306235e149ec888fa297290f325489f5c71cf81d344e1d1476570a6bd2b3e850c2f56494b7f8af1c6641f2e3221b7f9901eefa0b158b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.3] - 2024-09-11
4
+
5
+ - Fix error in handling of non-gRPC errors
6
+ - Fix error in method signature for OpenTelemetry::Instrumentation::Grpc.client_interceptor [#1](https://github.com/hibachrach/opentelemetry-instrumentation-grpc/pull/1)
7
+
3
8
  ## [0.1.2] - 2024-06-26
4
9
 
5
10
  - Align span naming with spec
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # OpenTelemetry::Instrumentation::Grpc
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/opentelemetry-instrumentation-grpc.svg)](https://badge.fury.io/rb/opentelemetry-instrumentation-grpc)
4
+ [![GitHub Actions CI Status](https://github.com/hibachrach/opentelemetry-instrumentation-grpc/actions/workflows/main.yml/badge.svg)](https://github.com/hibachrach/opentelemetry-instrumentation-grpc/actions?query=branch%3Amain)
5
+
3
6
  OpenTelemetry instrumentation for users of the `grpc` gem
4
7
 
5
8
  > [!WARNING]
@@ -17,7 +17,7 @@ module OpenTelemetry
17
17
  call(type: "server_streamer", requests: [request], call: call, method: method, metadata: metadata, &blk)
18
18
  end
19
19
 
20
- def bidi_streamer(request: nil, call: nil, method: nil, metadata: nil, &blk)
20
+ def bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil, &blk)
21
21
  call(type: "client_streamer", requests: requests, call: call, method: method, metadata: metadata, &blk)
22
22
  end
23
23
 
@@ -44,7 +44,7 @@ module OpenTelemetry
44
44
  instrumentation_tracer.in_span(
45
45
  # The specification requires there be no leading slash
46
46
  # https://github.com/open-telemetry/semantic-conventions/blob/5a2836bbea0b6e105b98370f331a7661bcf19540/docs/rpc/rpc-spans.md?plain=1#L63-L69
47
- method.to_s.delete_prefix('/'),
47
+ method.to_s.delete_prefix("/"),
48
48
  attributes: attributes,
49
49
  kind: OpenTelemetry::Trace::SpanKind::CLIENT
50
50
  ) do |span|
@@ -52,7 +52,7 @@ module OpenTelemetry
52
52
  yield.tap do
53
53
  span&.set_attribute(OpenTelemetry::SemanticConventions::Trace::RPC_GRPC_STATUS_CODE, 0)
54
54
  end
55
- rescue => e
55
+ rescue ::GRPC::BadStatus => e
56
56
  span&.set_attribute(OpenTelemetry::SemanticConventions::Trace::RPC_GRPC_STATUS_CODE, e.code)
57
57
  raise e
58
58
  end
@@ -3,7 +3,7 @@
3
3
  module OpenTelemetry
4
4
  module Instrumentation
5
5
  module Grpc
6
- VERSION = "0.1.2"
6
+ VERSION = "0.1.3"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hazel Bachrach
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-27 00:00:00.000000000 Z
11
+ date: 2024-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-instrumentation-base