Skip to content

Add code source for outgoing HTTP requests #4881

@alexander-alderman-webb

Description

@alexander-alderman-webb

Problem Statement

Adding information to spans for outgoing HTTP requests that show the code location of the request. The feature will be opt-in and triggered by a threshold timeout so users can debug slow requests.

The feature should work on our HTTP client integrations, namely HTTPX, AIOHTTP, and the standard library http client.

Similar to #2521, except that we include source code location for http requests instead of SQL queries. Similar to source info for SQL queries we want to set the attributes

  • code.namespace
  • code.filepath
  • code.function
  • code.lineno

where available. See the conventions: https://develop.sentry.dev/sdk/telemetry/traces/span-data-conventions/#general

Solution Brainstorm

Analogous to #2521

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions