File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc
opentelemetry-sdk/src/opentelemetry/sdk Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 8080 KeyValue ,
8181)
8282from opentelemetry .proto .resource .v1 .resource_pb2 import Resource # noqa: F401
83- from opentelemetry .sdk ._logs import LogRecord
83+ from opentelemetry .sdk ._logs import ReadableLogRecord
8484from opentelemetry .sdk ._logs .export import LogExportResult
8585from opentelemetry .sdk ._shared_internal import DuplicateFilter
8686from opentelemetry .sdk .environment_variables import (
118118logger .addFilter (DuplicateFilter ())
119119SDKDataT = TypeVar (
120120 "SDKDataT" ,
121- TypingSequence [LogRecord ],
121+ TypingSequence [ReadableLogRecord ],
122122 MetricsData ,
123123 TypingSequence [ReadableSpan ],
124124)
Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import logging
16- import warnings
1716from time import time_ns
1817from typing import Optional
1918
2019from opentelemetry import trace
2120from opentelemetry ._events import Event
2221from opentelemetry ._events import EventLogger as APIEventLogger
2322from opentelemetry ._events import EventLoggerProvider as APIEventLoggerProvider
24- from opentelemetry ._logs import NoOpLogger , SeverityNumber , get_logger_provider
25- from opentelemetry .sdk ._logs import (
26- Logger ,
27- LoggerProvider ,
23+ from opentelemetry ._logs import (
2824 LogRecord ,
25+ NoOpLogger ,
26+ SeverityNumber ,
27+ get_logger_provider ,
2928)
29+ from opentelemetry .sdk ._logs import Logger , LoggerProvider
3030from opentelemetry .util .types import _ExtendedAttributes
3131
3232_logger = logging .getLogger (__name__ )
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- from opentelemetry ._logs import LogRecord
1615from opentelemetry .sdk ._logs ._internal import (
1716 LogDroppedAttributesWarning ,
1817 Logger ,
3029 "LoggerProvider" ,
3130 "LoggingHandler" ,
3231 "LogLimits" ,
33- "LogRecord" ,
3432 "LogRecordProcessor" ,
3533 "ReadableLogRecord" ,
3634 "ReadWriteLogRecord" ,
Original file line number Diff line number Diff line change 2727 set_value ,
2828)
2929from opentelemetry .sdk ._logs import (
30- LogRecord ,
3130 LogRecordProcessor ,
3231 ReadableLogRecord ,
3332 ReadWriteLogRecord ,
You can’t perform that action at this time.
0 commit comments