Skip to content

Document all span attributes we use in sentry-conventions #4833

@antonpirker

Description

@antonpirker

Some of the span attributes that are used in the Python SDK are not yet documented in sentry-conventions or are deprecated and should be changed to a new name.

This is important because sentry-conventions should be the single source of truth. There will be code generation in place for SDKs and also relay so everyone uses the same attributes:

At the time of writing those are:

Deprecated:

  • ATTRIBUTE_NAMES.CODE_FILEPATH
  • ATTRIBUTE_NAMES.CODE_FUNCTION
  • ATTRIBUTE_NAMES.CODE_LINENO
  • ATTRIBUTE_NAMES.CODE_NAMESPACE
  • ATTRIBUTE_NAMES.DB_NAME
  • ATTRIBUTE_NAMES.DB_OPERATION
  • ATTRIBUTE_NAMES.DB_SYSTEM
  • ATTRIBUTE_NAMES.HTTP_METHOD
  • ATTRIBUTE_NAMES.HTTP_STATUS_CODE

Missing:

  • DB_MONGODB_COLLECTION
  • PROFILER_ID
  • SERVER_SOCKET_ADDRESS

There are also AI related attributes missing or deprecated. But those are all from the cohere integration and are tracked by the Update Cohere ticket:

Deprecated:

  • ATTRIBUTE_NAMES.AI_FINISH_REASON
  • ATTRIBUTE_NAMES.AI_FREQUENCY_PENALTY
  • ATTRIBUTE_NAMES.AI_GENERATION_ID
  • ATTRIBUTE_NAMES.AI_INPUT_MESSAGES
  • ATTRIBUTE_NAMES.AI_MODEL_ID
  • ATTRIBUTE_NAMES.AI_PRESENCE_PENALTY
  • ATTRIBUTE_NAMES.AI_RESPONSES
  • ATTRIBUTE_NAMES.AI_SEED
  • ATTRIBUTE_NAMES.AI_STREAMING
  • ATTRIBUTE_NAMES.AI_TOOL_CALLS
  • ATTRIBUTE_NAMES.AI_TOOLS
  • ATTRIBUTE_NAMES.AI_TOP_K
  • ATTRIBUTE_NAMES.AI_TOP_P

Missing:

  • AI_SEARCH_REQUIRED

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions