Skip to content

Conversation

@pquentin
Copy link
Member

The build-dists.py step often fails during publishing, let's add it to CI.

@github-actions
Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

@pquentin pquentin merged commit 6ba6e38 into elastic:main Nov 13, 2024
12 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
(cherry picked from commit 6ba6e38)
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
(cherry picked from commit 6ba6e38)
Copy link
Member Author

@pquentin pquentin left a comment

Choose a reason for hiding this comment

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

Forgot to post my review, posting it anyway after merging.


from ..._version import __versionstr__
from ...compat import to_bytes, to_str, warn_stacklevel
from ...exceptions import GeneralAvailabilityWarning
Copy link
Member Author

Choose a reason for hiding this comment

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

This part is needed for the elasticsearch8 package. All imports are relative for this reason.

@contextlib.contextmanager
def use_span(self, span: OpenTelemetrySpan) -> Generator[None, None, None]:
if not self.enabled or self.tracer is None:
if not self.enabled or self.tracer is None or span.otel_span is None:
Copy link
Member Author

Choose a reason for hiding this comment

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

This change is needed for mypy: trace.use_span below expects a Span, but span.otel_span is typed as Span | None (to handle the case where OpenTelemetry is not available).

@pquentin pquentin deleted the package-dists branch November 13, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants