Skip to content

Commit 49540d2

Browse files
committed
Update
1 parent 7ff66d1 commit 49540d2

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

exporter/opentelemetry-exporter-otlp-proto-grpc/src/opentelemetry/exporter/otlp/proto/grpc/exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
KeyValue,
8181
)
8282
from opentelemetry.proto.resource.v1.resource_pb2 import Resource # noqa: F401
83-
from opentelemetry.sdk._logs import LogRecord
83+
from opentelemetry.sdk._logs import ReadableLogRecord
8484
from opentelemetry.sdk._logs.export import LogExportResult
8585
from opentelemetry.sdk._shared_internal import DuplicateFilter
8686
from opentelemetry.sdk.environment_variables import (
@@ -118,7 +118,7 @@
118118
logger.addFilter(DuplicateFilter())
119119
SDKDataT = TypeVar(
120120
"SDKDataT",
121-
TypingSequence[LogRecord],
121+
TypingSequence[ReadableLogRecord],
122122
MetricsData,
123123
TypingSequence[ReadableSpan],
124124
)

opentelemetry-sdk/src/opentelemetry/sdk/_events/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
# limitations under the License.
1414

1515
import logging
16-
import warnings
1716
from time import time_ns
1817
from typing import Optional
1918

2019
from opentelemetry import trace
2120
from opentelemetry._events import Event
2221
from opentelemetry._events import EventLogger as APIEventLogger
2322
from 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
3030
from opentelemetry.util.types import _ExtendedAttributes
3131

3232
_logger = logging.getLogger(__name__)

opentelemetry-sdk/src/opentelemetry/sdk/_logs/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from opentelemetry._logs import LogRecord
1615
from opentelemetry.sdk._logs._internal import (
1716
LogDroppedAttributesWarning,
1817
Logger,
@@ -30,7 +29,6 @@
3029
"LoggerProvider",
3130
"LoggingHandler",
3231
"LogLimits",
33-
"LogRecord",
3432
"LogRecordProcessor",
3533
"ReadableLogRecord",
3634
"ReadWriteLogRecord",

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/export/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
set_value,
2828
)
2929
from opentelemetry.sdk._logs import (
30-
LogRecord,
3130
LogRecordProcessor,
3231
ReadableLogRecord,
3332
ReadWriteLogRecord,

0 commit comments

Comments
 (0)