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.0.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.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for connectrpc_otel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6e19ee57c1e143a04e199a8a58b9f7d89bb760a0476404fc050a9d24679dda3b
MD5 7a90500128d4c1b5d2c4f7992529e15a
BLAKE2b-256 026a69b7897578b1c546b2f8de5e53a11ed43b353488a4cef17697402d70a8b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_otel-0.1.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for connectrpc_otel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 08b9a8ef82abc4cf69e50f10d1a249fb61fcac472c170cd6ebb88b52f0c90229
MD5 9b0b0fb92601a1fc8f157b95d6483fc8
BLAKE2b-256 ea0ab8cce00f14032557729925a118c67777df56687e67d4a81feb5d979a725a

See more details on using hashes here.

Provenance

The following attestation bundles were made for connectrpc_otel-0.1.0-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