Skip to content

Add sdk._logs directory to pyright, fix existing lint errors#4583

Closed
DylanRussell wants to merge 3 commits into
open-telemetry:mainfrom
DylanRussell:add_logs_to_typecheck
Closed

Add sdk._logs directory to pyright, fix existing lint errors#4583
DylanRussell wants to merge 3 commits into
open-telemetry:mainfrom
DylanRussell:add_logs_to_typecheck

Conversation

@DylanRussell

Copy link
Copy Markdown
Contributor

Description

Add sdk._logs directory to pyright, fix existing lint errors.

Found what I think is a bug as well. See #4582

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • [x ] Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Unit tests

Does This PR Require a Contrib Repo Change?

  • Yes. - Link to PR:
  • [ x] No.

Checklist:

  • [x ] Followed the style guidelines of this project
  • [ x] Changelogs have been updated
  • [ x] Unit tests have been added
  • [ x] Documentation has been updated

@DylanRussell DylanRussell requested a review from a team as a code owner May 14, 2025 19:43
severity_number: Optional[SeverityNumber] = None,
body: AnyValue = None,
attributes: Optional[_ExtendedAttributes] = None,
attributes: Optional[Attributes] = None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised, we have code passing _ExtendedAttributes here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I think passing _ExtendedAttributes is in line with the spec: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/logs/data-model.md#field-attributes .

But I also see #4587 which is doing the opposite of this -- basically making _ExtendedAttributes the default used everywhere (and renaming it to Attributes)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#4587 is a prototype for a spec change, I hope to get this in well before that :)

Comment thread pyproject.toml
@xrmx xrmx added the Skip Changelog PRs that do not require a CHANGELOG.md entry label May 23, 2025
@xrmx xrmx moved this to Reviewed PRs that need fixes in Python PR digest Sep 12, 2025
@github-actions

github-actions Bot commented Mar 6, 2026

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 days of this comment.
If you're still working on this, please add a comment or push new commits.

@github-actions github-actions Bot added the Stale label Mar 6, 2026
@github-actions

Copy link
Copy Markdown

This PR has been closed due to inactivity. Please reopen if you would like to continue working on it.

@github-actions github-actions Bot closed this Mar 20, 2026
@github-project-automation github-project-automation Bot moved this from Reviewed PRs that need fixes to Done in Python PR digest Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Skip Changelog PRs that do not require a CHANGELOG.md entry Stale

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants