Skip to main content

OpenTelemetry instrumentation for connectrpc

Project description

connectrpc-otel

OpenTelemetry instrumentation for connect-python to generate server and client spans and metrics for ConnectRPC requests with support for auto-instrumentation.

Example

from connectrpc_otel import OpenTelemetryInterceptor

from eliza_connect import ElizaServiceWSGIApplication, ElizaServiceClientSync

from ._service import MyElizaService

app = ElizaServiceWSGIApplication(MyElizaService(), interceptors=[OpenTelemetryInterceptor()])

def make_request():
    client = ElizaServiceClientSync("http://localhost:8080", interceptors=[OpenTelemetryInterceptor(client=True)])
    resp = client.Say(SayRequest(sentence="Hello!"))
    print(resp)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

connectrpc_otel-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

connectrpc_otel-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file connectrpc_otel-0.1.1.tar.gz.

File metadata

  • Download URL: connectrpc_otel-0.1.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for connectrpc_otel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b02af5f3fab070d243536789c8186c5321caa66cdac0e27a4516b9f92a561e50
MD5 01e37bea4dfb68f4ba02cc18491c94e8
BLAKE2b-256 d55e7466ef25a5472a58d0ae11ef23a65a4f1d8150ecbbd21b10a1590b5d8536

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_otel-0.1.1.tar.gz:

Publisher: release-otel.yaml on connectrpc/connect-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file connectrpc_otel-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for connectrpc_otel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abb2945fadd65ce79090a42a428d7bc3468b61d3ce28f0c03b2df591c8719fac
MD5 55cd51dbc4e914ec0b60d0bcb1042bbd
BLAKE2b-256 cbfe20b831e10004fba10546f9f6d1538afe63ad76a49204b39b6a34061a3559

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_otel-0.1.1-py3-none-any.whl:

Publisher: release-otel.yaml on connectrpc/connect-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page