Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
Add code span data attributes (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad authored Dec 19, 2023
1 parent 13ea5f8 commit c2b3180
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/docs/sdk/performance/span-data-conventions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Keys on the `data` field should be lower-case and use underscores instead of cam

Below describes the conventions for the Span interface for the `data` field on the span that are currently used by the product or are important to bring up.

## General

| Attribute | Type | Description | Examples |
| ---------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| `code.filepath` | string | The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). | `/app/myapplication/http/handler/server.py` |
| `code.lineno` | number | The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function` | `42` |
| `code.function` | string | The method or function name, or equivalent (usually rightmost part of the code unit's name). | `server_request` |
| `code.namespace` | string | The "namespace" within which `code.function` is defined. Usually the qualified class or module name, such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. | `http.handler` |

## HTTP

| Attribute | Type | Description | Examples |
Expand Down

1 comment on commit c2b3180

@vercel
Copy link

@vercel vercel bot commented on c2b3180 Dec 19, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

develop – ./

develop.sentry.dev
develop-git-master.sentry.dev

Please sign in to comment.