File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222from dataclasses import dataclass , field
2323from datetime import UTC , datetime
24- from enum import Enum
24+ from enum import StrEnum
2525from typing import Any , Protocol
2626
2727from telemetryflow .domain .config import TelemetryConfig
2828
2929
30- class SeverityLevel (str , Enum ):
30+ class SeverityLevel (StrEnum ):
3131 """Log severity levels."""
3232
3333 TRACE = "trace"
@@ -38,7 +38,7 @@ class SeverityLevel(str, Enum):
3838 FATAL = "fatal"
3939
4040
41- class SpanKind (str , Enum ):
41+ class SpanKind (StrEnum ):
4242 """Span kind for traces."""
4343
4444 INTERNAL = "internal"
Original file line number Diff line number Diff line change 2121
2222from dataclasses import dataclass , field
2323from datetime import UTC , datetime , timedelta
24- from enum import Enum
24+ from enum import StrEnum
2525from typing import Any , Protocol
2626
2727
28- class HealthStatus (str , Enum ):
28+ class HealthStatus (StrEnum ):
2929 """Health status values."""
3030
3131 HEALTHY = "healthy"
Original file line number Diff line number Diff line change 2222import re
2323from dataclasses import dataclass , field
2424from datetime import timedelta
25- from enum import Enum
25+ from enum import StrEnum
2626from typing import Any
2727
2828from telemetryflow .domain .credentials import Credentials
3535)
3636
3737
38- class Protocol (str , Enum ):
38+ class Protocol (StrEnum ):
3939 """OTLP protocol type."""
4040
4141 GRPC = "grpc"
4242 HTTP = "http"
4343
4444
45- class SignalType (str , Enum ):
45+ class SignalType (StrEnum ):
4646 """Telemetry signal type."""
4747
4848 METRICS = "metrics"
You can’t perform that action at this time.
0 commit comments