
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
A collection of Ruby interceptors (middlewares) for gRPC servers and clients.
Heavily inspired by grpc-ecosystem/go-grpc-middleware. The motivation is to have a unified behavior of gRPC services and integrated telemetry data (logging, tracing and metrics) regardless of the used language.
The order of interceptors matters. Considering all server interceptors, the correct way of installation is:
WIP
When the LOG_LEVEL
env variable is set to INFO
then the server logs out.
When the LOG_LEVEL
env variable is set to DEBUG
then the server additionally adds the request to the log message. (Note, adding the response is currently blocked by this gRPC issue.)
GRPC::RpcServer.new(
interceptors: [
GrpcInterceptors::Server::StatsDMetrics.new
]
)
The server emits a histogram metric called grpc_latency_seconds
with the following tags:
grpc_method
representing the called methodgrpc_service
representing the servicegrpc_type
representing the gRPC kind of method# https://github.com/grpc/grpc/blob/v1.62.0/src/ruby/lib/grpc/generic/rpc_server.rb#L43C9-L43C21
server.instance_variable_get(:@pool).jobs_waiting
GRPC::RpcServer.new(
interceptors: [
GrpcInterceptors::Server::OpenTelemetryTracingInstrument.new
]
)
GRPC::RpcServer.new(
interceptors: [
GrpcInterceptors::Client::OpenTelemetryTracingInstrument.new
]
)
Integration tests require some infrastructure to mimic gRPC client and server. For this purpose, there's a simple service definition in the test/integration/support/ping.proto
. To re-generate *_pb.rb
files run bundle exec rake proto:generate
.
bundle exec rake build
bundle exec rake release
FAQs
Unknown package
We found that grpc_interceptors demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.