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

Define error metadata tags #2786

Closed

Conversation

izumin5210
Copy link

What does this PR do?

Add error metadata tags to ext/tags.js defined in https://docs.datadoghq.com/tracing/trace_explorer/trace_view/?tab=spantags#more-information

@izumin5210 izumin5210 requested a review from a team as a code owner February 9, 2023 06:50
@@ -9,6 +9,9 @@ const tags = {
SAMPLING_PRIORITY: 'sampling.priority',
ANALYTICS: '_dd1.sr.eausr',
ERROR: 'error',
ERROR_MSG: 'error.message',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 dd-trace-go changes error.msg to error.messages on 2022-12-07
DataDog/dd-trace-go#1605

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is your use case for setting these manually? It should be enough to set the ERROR tag to an error object which will then automatically be converted to the appropriate tags internally. Setting these manually is discouraged.

@@ -9,6 +9,9 @@ const tags = {
SAMPLING_PRIORITY: 'sampling.priority',
ANALYTICS: '_dd1.sr.eausr',
ERROR: 'error',
ERROR_MSG: 'error.message',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is your use case for setting these manually? It should be enough to set the ERROR tag to an error object which will then automatically be converted to the appropriate tags internally. Setting these manually is discouraged.

@tlhunter
Copy link
Member

@izumin5210 it looks like Roch had some open concerns about this PR. Is it something you'd still like to work on? If not I can close it for now.

@tlhunter
Copy link
Member

I'll close this PR for now but we can consider reopening it in the future.

@tlhunter tlhunter closed this Jan 12, 2024
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

Successfully merging this pull request may close these issues.

None yet

3 participants