SOCKET

Use this integration to create spans for dns resolves and connection creations.

Install

socket is included by default in CPython

Configure

Add SocketIntegration() to your integrations list:

Copied
import sentry_sdk
from sentry_sdk.integrations.socket import SocketIntegration

sentry_sdk.init(
    dsn="https://examplePublicKey@o0.ingest.sentry.io/0",
    integrations=[
        SocketIntegration(),
    ],
)

Supported Versions

  • Python: 2.7+
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").