opentelemetry-instrumentation-gruf 0.6.0 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aeca61795b523a3cdb2be4689b21b1b58c73a209be96c6f1973bc6a2db346b58
|
|
4
|
+
data.tar.gz: 49978273d09ca49fb3f66901d9441fa5ca0c6f3b14fc035e087193558efc2b82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 208d549363082339c1c32838b7c463d790564e513e6fe077d685ed15b264827ed448c8ae11cd41569c05eb1b809b5074ef5a290461c334885ca1c06cdae9ffe6
|
|
7
|
+
data.tar.gz: 771d94ffc0c68c408240f66ae23ab133d1339ed14b5856f1497b7d3b2d3f56f3cb7a7c8708f93d35933631bf915be78ab2571721f3ce985d5330fefe79d9ec96
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release History: opentelemetry-instrumentation-gruf
|
|
2
2
|
|
|
3
|
+
## v0.6.2 / 2026-07-07
|
|
4
|
+
|
|
5
|
+
- DOCS: Improve gruf instrumentation documentation (#2207)
|
|
6
|
+
|
|
7
|
+
## v0.6.1 / 2026-05-21
|
|
8
|
+
|
|
9
|
+
- FIXED: Handle missing config in middleware when OTEL_SDK_DISABLED=true (#2231)
|
|
10
|
+
|
|
3
11
|
## v0.6.0 / 2026-04-14
|
|
4
12
|
|
|
5
13
|
- BREAKING CHANGE: Min Ruby Version 3.3 (#2125)
|
data/README.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
# OpenTelemetry Gruf Instrumentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The OpenTelemetry Gruf Ruby gem is a community-maintained instrumentation for Gruf, a gRPC framework for Ruby. It enables automatic tracing of RPC requests handled by Gruf services.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This instrumentation integrates OpenTelemetry with Gruf to create spans for incoming gRPC requests. It helps in observing request flow, latency and errors in distributed systems.
|
|
8
|
+
|
|
9
|
+
## How it works
|
|
10
|
+
|
|
11
|
+
The Gruf instrumentation hooks into the request lifecycle of Gruf-based gRPC services and automatically creates spans for each incoming RPC request.
|
|
12
|
+
|
|
13
|
+
It captures useful metadata such as:
|
|
14
|
+
- RPC method name
|
|
15
|
+
- Request lifecycle events
|
|
16
|
+
- Errors, if any
|
|
4
17
|
|
|
5
18
|
## How do I get started?
|
|
6
19
|
|
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
module OpenTelemetry
|
|
8
8
|
module Instrumentation
|
|
9
9
|
module Gruf
|
|
10
|
+
# Interceptors contains the gRPC interceptors used by the Gruf instrumentation
|
|
10
11
|
module Interceptors
|
|
12
|
+
# Client is a Gruf client interceptor that creates an OpenTelemetry span
|
|
13
|
+
# for each outbound gRPC call, injecting trace context into request metadata
|
|
11
14
|
class Client < ::Gruf::Interceptors::ClientInterceptor
|
|
12
15
|
def call(request_context:)
|
|
13
|
-
return yield
|
|
16
|
+
return yield unless Gruf::Instrumentation.instance.installed?
|
|
14
17
|
|
|
15
18
|
service = request_context.method.split('/')[1]
|
|
16
19
|
method = request_context.method_name
|
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
module OpenTelemetry
|
|
8
8
|
module Instrumentation
|
|
9
9
|
module Gruf
|
|
10
|
+
# Interceptors contains the gRPC interceptors used by the Gruf instrumentation
|
|
10
11
|
module Interceptors
|
|
12
|
+
# Server is a Gruf server interceptor that creates an OpenTelemetry span
|
|
13
|
+
# for each inbound gRPC call, extracting trace context from request metadata
|
|
11
14
|
class Server < ::Gruf::Interceptors::ServerInterceptor
|
|
12
15
|
def call
|
|
13
|
-
return yield
|
|
16
|
+
return yield unless Gruf::Instrumentation.instance.installed?
|
|
14
17
|
|
|
15
18
|
method = request.method_name
|
|
16
19
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opentelemetry-instrumentation-gruf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenTelemetry Authors
|
|
@@ -45,10 +45,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
|
|
|
45
45
|
licenses:
|
|
46
46
|
- Apache-2.0
|
|
47
47
|
metadata:
|
|
48
|
-
changelog_uri: https://
|
|
49
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-gruf/v0.6.
|
|
48
|
+
changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-gruf/0.6.2/file/CHANGELOG.md
|
|
49
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/opentelemetry-instrumentation-gruf/v0.6.2/instrumentation/gruf
|
|
50
50
|
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
|
51
|
-
documentation_uri: https://
|
|
51
|
+
documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-gruf/0.6.2
|
|
52
52
|
rdoc_options: []
|
|
53
53
|
require_paths:
|
|
54
54
|
- lib
|
|
@@ -63,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
63
63
|
- !ruby/object:Gem::Version
|
|
64
64
|
version: '0'
|
|
65
65
|
requirements: []
|
|
66
|
-
rubygems_version: 4.0.
|
|
66
|
+
rubygems_version: 4.0.10
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: Gruf instrumentation for the OpenTelemetry framework
|
|
69
69
|
test_files: []
|