Skip to content

Conversation

@rbagd
Copy link
Contributor

@rbagd rbagd commented Jun 19, 2024

Description

This PR adapts the instrumentation of Pyramid applications so that traces would contain information on uncaught exceptions or errors while serving a request. This is similar to what is done in the generic OpenTelemetryMiddleware for WSGI apps, which is not used in Pyramid instrumentation.

Fixes #2619

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Unit tests added to ensure information on exceptions is present in generated traces. Only HTTP 5xx-like responses should generate such exceptions.

Does This PR Require a Core Repo Change?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

rbagd added 2 commits June 19, 2024 18:24
* Only internal errors and exceptions are recorded
* Status description is updated in case of an error
* Unit tests added
@rbagd rbagd requested a review from a team June 19, 2024 16:38
@rbagd rbagd mentioned this pull request Jun 19, 2024
1 task
Copy link
Contributor

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

Thanks!

@lzchen lzchen merged commit fecb1e2 into open-telemetry:main Jun 20, 2024
xrmx pushed a commit to xrmx/opentelemetry-python-contrib that referenced this pull request Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Exceptions are not recorded in traces from instrumented Pyramid apps

3 participants