-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disables run tracer with PREFECT_CLOUD_ENABLE_ORCHESTRATION_TELEMETRY
#17417
base: main
Are you sure you want to change the base?
Disables run tracer with PREFECT_CLOUD_ENABLE_ORCHESTRATION_TELEMETRY
#17417
Conversation
…-automatic-opentelemetry
CodSpeed Performance ReportMerging #17417 will not alter performanceComparing Summary
|
…opentelemetry' of https://github.com/PrefectHQ/prefect into jean/eng-1533-allow-user-to-disable-prefects-automatic-opentelemetry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! one small request to use T | None
instead of Optional[T]
since we already have from __future__ import annotations
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I left a couple of suggestions based on @zzstoatzz's comment
|
||
async def async_start_span( | ||
self, | ||
run: FlowOrTaskRun, | ||
client: PrefectClient, | ||
parameters: dict[str, Any] | None = None, | ||
) -> Span: | ||
) -> Optional[Span]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
) -> Optional[Span]: | |
) -> Span | None: |
@@ -73,7 +78,10 @@ def start_span( | |||
run: FlowOrTaskRun, | |||
client: SyncPrefectClient, | |||
parameters: dict[str, Any] | None = None, | |||
) -> Span: | |||
) -> Optional[Span]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
) -> Optional[Span]: | |
) -> Span | None: |
@@ -2,7 +2,7 @@ | |||
|
|||
import time | |||
from dataclasses import dataclass, field | |||
from typing import TYPE_CHECKING, Any, Union | |||
from typing import TYPE_CHECKING, Any, Optional, Union |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from typing import TYPE_CHECKING, Any, Optional, Union | |
from typing import TYPE_CHECKING, Any, Union |
Disables the creation of spans when
PREFECT_CLOUD_ENABLE_ORCHESTRATION_TELEMETRY
is on. This fixes issue with users importing our run telemetry with their own OTEL setup.closes #17190
Checklist
<link to issue>
"mint.json
.__