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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26efaa070d7b860b93a139d4f4b09914537a084a3e209f2758895ea8afd6fc50
|
4
|
+
data.tar.gz: 43f1a935e75e418f27ca7eb494e9582ef4c12c4a9232165057842a0d2998ccd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
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.
|
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-
|
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
|