Skip to content

Add instrumentation for discord.py library #4492

@laggron42

Description

@laggron42

What problem do you want to solve?

The discord.py library provides a framework for writing Discord bots with helpers for commands and listeners. There is nothing providing tracing support for this at the moment, limiting the out-of-the-box instrumentation experience to the underlying aiohttp library.

Describe the solution you'd like

discord.py has events (on_message, on_member_join, ...) and commands. Having traces on these events would provide meaningful data, showing what happens when a user interacts with the bot.

Describe alternatives you've considered

I've started drafting my own implementation for my bot over here, but I realized I'm not the only one who could benefit from this.

Additional Context

No response

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions