[logs-sdk] Remove LogData and extend SDK LogRecord to have instrumentation scope by hectorhdzg · Pull Request #4676 · open-telemetry/opentelemetry-python

@hectorhdzg

@hectorhdzg

@hectorhdzg

@hectorhdzg

hectorhdzg

hectorhdzg

hectorhdzg

@hectorhdzg

DylanRussell

@hectorhdzg

@hectorhdzg

@hectorhdzg

rads-1996

xrmx

xrmx

@hectorhdzg

xrmx

@hectorhdzg

xrmx

xrmx approved these changes Nov 12, 2025

@hectorhdzg @xrmx

This was referenced

Jan 30, 2026

liustve added a commit to aws-observability/aws-otel-python-instrumentation that referenced this pull request

Feb 4, 2026
Automated update of OpenTelemetry dependencies.

**Build Status:** ❌
[failure](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/21465140126)

**Updated versions:**
- [OpenTelemetry
Python](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.39.1):
1.39.1
- [OpenTelemetry
Contrib](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.60b1):
0.60b1
-
[opentelemetry-sdk-extension-aws](https://pypi.org/project/opentelemetry-sdk-extension-aws/2.1.0/):
2.1.0
-
[opentelemetry-propagator-aws-xray](https://pypi.org/project/opentelemetry-propagator-aws-xray/1.0.2/):
1.0.2

**Upstream releases with breaking changes:**
Note: the mechanism to detect upstream breaking changes is not perfect.
Be sure to check all new releases and understand if any additional
changes need to be addressed.

**opentelemetry-python:**
- [Version
1.35.0/0.56b0](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.35.0)

**opentelemetry-python-contrib:**
- [Version
1.34.0/0.55b0](https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/v0.55b0)

*Description of changes:*

- Un-reverts changes done in this PR:
#531

- Removed patches for Bedrock following the changes applied in these
PRs:
open-telemetry/opentelemetry-python-contrib#3544,
open-telemetry/opentelemetry-python-contrib#3548,
open-telemetry/opentelemetry-python-contrib#3875,
open-telemetry/opentelemetry-python-contrib#3990

- Removes patches for Secrets Manager, SNS, and Step Functions following
the changes applied in these PRs:
open-telemetry/opentelemetry-python-contrib#3734,
open-telemetry/opentelemetry-python-contrib#3737,
open-telemetry/opentelemetry-python-contrib#3765,

- Removes patches for Starlette following the changes applied in this
PR:
open-telemetry/opentelemetry-python-contrib#3456

- Changes imports and implementation of `OTLPAwsLogExporter`,
`AwsCloudWatchOtlpBatchLogRecordProcessor`, and
`CompactConsoleLogExporter` following these PRs:
open-telemetry/opentelemetry-python#4580,
open-telemetry/opentelemetry-python#4535,
open-telemetry/opentelemetry-python#4562,
open-telemetry/opentelemetry-python#4647,
open-telemetry/opentelemetry-python#4676

- Removes a few AWS semantic conventions from `_aws_attribute_keys ` and
replaces them with equivalent ones from upstream following the changes
in this PR:
open-telemetry/opentelemetry-python#4791

- Fix Lambda instrumentation test to set `AWS_LAMBDA_FUNCTION_NAME` env
var following changes in:
open-telemetry/opentelemetry-python-contrib#3183

- Adds a few more contract tests to verify upstream's botocore
instrumentation library


By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Thomas Pierce <thp@amazon.com>
Co-authored-by: Steve Liu <liustve@amazon.com>

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…ation scope (open-telemetry#4676)

* removing LogData and extending SDK LogRecord to have instrumentation scope

* Fix tests

* Keep LogData to avoid errors

* Removing LogData

* Update

* Update test

* Update

* Update event test

* Update

* Address comments

* Update

* Add ReadableLogRecord and ReadWriteLogRecord

* Update

* Update tests

* Add dropped_attributes in ReadableLogRecord, this is used to encode logs in OTLP

* Convert to ReadWriteLogRecord before exporting

* Update EventLogger

* Update

* Fix events tests

* Update

* Update  event test

* Update after merge

* Update otlp common test

* Update

* Address comments

* Update

* Update

* Update

* Update

* ruff

* Addressing comments

* Final cleanup

JWinermaSplunk pushed a commit to JWinermaSplunk/opentelemetry-python that referenced this pull request

Feb 17, 2026
…ation scope (open-telemetry#4676)

* removing LogData and extending SDK LogRecord to have instrumentation scope

* Fix tests

* Keep LogData to avoid errors

* Removing LogData

* Update

* Update test

* Update

* Update event test

* Update

* Address comments

* Update

* Add ReadableLogRecord and ReadWriteLogRecord

* Update

* Update tests

* Add dropped_attributes in ReadableLogRecord, this is used to encode logs in OTLP

* Convert to ReadWriteLogRecord before exporting

* Update EventLogger

* Update

* Fix events tests

* Update

* Update  event test

* Update after merge

* Update otlp common test

* Update

* Address comments

* Update

* Update

* Update

* Update

* ruff

* Addressing comments

* Final cleanup