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

feat: Add root span tagging for exceptions. #451

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

dianakhuang
Copy link
Contributor

@dianakhuang dianakhuang commented Sep 26, 2024

Datadog has issues with tagging the root span
with error information. This change adds the functionality
to tag the root span on exceptions.

This also renames the CachedCustomMonitoringMiddleware into
MonitoringSupportMiddleware so that it can be a central place
for most monitoring middleware changes instead of adding a new
one every time. At some point, CachedCustomMonitoringMiddleware
will be removed.

edx/edx-arch-experiments#647

@dianakhuang dianakhuang force-pushed the diana/add-error-tagging branch 5 times, most recently from f1393a2 to 5fd9fe1 Compare September 27, 2024 17:54
@dianakhuang dianakhuang marked this pull request as ready for review September 27, 2024 17:55
edx_django_utils/monitoring/internal/backends.py Outdated Show resolved Hide resolved
edx_django_utils/monitoring/internal/middleware.py Outdated Show resolved Hide resolved
edx_django_utils/monitoring/internal/middleware.py Outdated Show resolved Hide resolved
edx_django_utils/monitoring/internal/middleware.py Outdated Show resolved Hide resolved
@dianakhuang dianakhuang force-pushed the diana/add-error-tagging branch from b03ee8e to 0dc18b1 Compare September 30, 2024 15:18
@dianakhuang dianakhuang force-pushed the diana/add-error-tagging branch from a559140 to 9c1f532 Compare October 1, 2024 14:43
Copy link
Contributor

@robrap robrap left a comment

Choose a reason for hiding this comment

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

Looks great. Thanks.

Datadog has issues with tagging the root span
with error information. This change adds the functionality
to tag the root span on exceptions.

This also renames the CachedCustomMonitoringMiddleware into
MonitoringSupportMiddleware so that it can be a central place
for most monitoring middleware changes instead of adding a new
one every time. At some point, CachedCustomMonitoringMiddleware
will be removed.

edx/edx-arch-experiments#647
@dianakhuang dianakhuang force-pushed the diana/add-error-tagging branch from 9c1f532 to 9342700 Compare October 1, 2024 15:14
@dianakhuang dianakhuang enabled auto-merge October 1, 2024 15:15
@dianakhuang dianakhuang merged commit 000db25 into master Oct 1, 2024
11 checks passed
@dianakhuang dianakhuang deleted the diana/add-error-tagging branch October 1, 2024 15:31
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.

2 participants