File tree 2 files changed +6
-4
lines changed
opentelemetry-api/src/opentelemetry
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ def __init__(
54
54
trace_flags = trace_flags ,
55
55
body = body ,
56
56
severity_number = severity_number ,
57
- attributes = event_attributes , # type: ignore
57
+ attributes = event_attributes ,
58
58
)
59
59
self .name = name
60
60
Original file line number Diff line number Diff line change 37
37
from logging import getLogger
38
38
from os import environ
39
39
from time import time_ns
40
- from typing import Optional , cast
40
+ from typing import Optional , Union , cast
41
41
42
42
from opentelemetry ._logs .severity import SeverityNumber
43
43
from opentelemetry .attributes import BoundedAttributes
@@ -68,7 +68,9 @@ def __init__(
68
68
severity_text : Optional [str ] = None ,
69
69
severity_number : Optional [SeverityNumber ] = None ,
70
70
body : AnyValue = None ,
71
- attributes : Optional [BoundedAttributes ] = None ,
71
+ attributes : Optional [
72
+ Union [BoundedAttributes , ExtendedAttributes ]
73
+ ] = None ,
72
74
):
73
75
self .timestamp = timestamp
74
76
if observed_timestamp is None :
@@ -80,7 +82,7 @@ def __init__(
80
82
self .severity_text = severity_text
81
83
self .severity_number = severity_number
82
84
self .body = body
83
- self .attributes : Optional [ BoundedAttributes ] = attributes
85
+ self .attributes = attributes
84
86
85
87
86
88
class Logger (ABC ):
You can’t perform that action at this time.
0 commit comments