Files
hatchet/sdks/python/hatchet_sdk/utils/opentelemetry.py
Matt Kaye bd1452482e Feat: Expand OpenTelemetry Integration (#1792)
* feat: initial work expanding instrumentation

* feat: automatically inject traceparent into metadata in instrumentor

* feat: deprecate old attrs

* feat: add new namespaced attrs

* chore: version

* fix: type bug

* feat: tracing scheduled workflows

* fix: don't need duplication

* feat: convert timestamps to ISO

* fix: warn on use of old methods

* feat: changelog

* fix: enum breakages

* fix: docs

* feat: add a couple of additional attrs to bulk events

* cleanup: types

* fix: comment

* fix: example

* feat: langfuse example

* tweak: edge cases

* feat: example cleanup

* feat: examples

* chore: gen

* feat: langfuse docs

* feat: extend docs

* fix: lint

* fix: disclaimer

* fix: start and end whitespace

* fix: rm langfuse for now

* fix: rm langfuse trace pic

* fix: ci config
2025-05-30 11:20:00 -04:00

45 lines
1.2 KiB
Python

from enum import Enum
class OTelAttribute(str, Enum):
## Shared
NAMESPACE = "namespace"
ADDITIONAL_METADATA = "additional_metadata"
WORKFLOW_NAME = "workflow_name"
PRIORITY = "priority"
## Unfortunately named - this corresponds to all types of payloads, not just actions
ACTION_PAYLOAD = "payload"
## Action
ACTION_NAME = "action_name"
CHILD_WORKFLOW_INDEX = "child_workflow_index"
CHILD_WORKFLOW_KEY = "child_workflow_key"
GET_GROUP_KEY_RUN_ID = "get_group_key_run_id"
PARENT_WORKFLOW_RUN_ID = "parent_workflow_run_id"
RETRY_COUNT = "retry_count"
STEP_ID = "step_id"
STEP_RUN_ID = "step_run_id"
TENANT_ID = "tenant_id"
WORKER_ID = "worker_id"
WORKFLOW_ID = "workflow_id"
WORKFLOW_RUN_ID = "workflow_run_id"
WORKFLOW_VERSION_ID = "workflow_version_id"
## Push Event
EVENT_KEY = "event_key"
FILTER_SCOPE = "scope"
## Trigger Workflow
PARENT_ID = "parent_id"
PARENT_STEP_RUN_ID = "parent_step_run_id"
CHILD_INDEX = "child_index"
CHILD_KEY = "child_key"
DESIRED_WORKER_ID = "desired_worker_id"
STICKY = "sticky"
KEY = "key"
## Schedule Workflow
RUN_AT_TIMESTAMPS = "run_at_timestamps"