Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event name should be overridable. #2696

Closed
twitchax opened this issue Aug 27, 2023 · 2 comments
Closed

Event name should be overridable. #2696

twitchax opened this issue Aug 27, 2023 · 2 comments

Comments

@twitchax
Copy link
Contributor

Feature Request

Crates

tracing

Motivation

Compatibility with various otel-ish endpoints.

Proposal

It would be nice if the user could specify the event name in tracing::event!, tracing::error!, etc. Right now, it appears to be set to some default, and many otel endpoints use exception. Allowing the user to override this value would allow them to flag exceptional events in the otel service.

I could possibly implement this.

@davidbarsky
Copy link
Member

We're not opposed to this change, but I'm going to close this as a duplicate of #1426. Feel free to take a look at the discussion there for guidance on implementing this.

@hawkw
Copy link
Member

hawkw commented Aug 28, 2023

As I mentioned in #1426 (comment), I'm happy to merge a PR that adds custom event names, if you're interested in submitting one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants