Skip to content

New OTel Integration #54

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

Merged
merged 19 commits into from
Feb 12, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update _send_telemetry.py
  • Loading branch information
mrm9084 committed Jan 30, 2025
commit 1cd8703ea922c04f38b717ac6cb4534ab892cd60
2 changes: 2 additions & 0 deletions featuremanagement/azuremonitor/_send_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

EVALUATION_EVENT_VERSION = "1.1.0"


def track_event(event_name: str, user: str, event_properties: Optional[Dict[str, Optional[str]]] = None) -> None:
"""
Tracks an event with the specified name and properties.
Expand Down Expand Up @@ -123,6 +124,7 @@ def attach_targeting_info(targeting_id: str) -> None:


if HAS_AZURE_MONITOR_EVENTS_EXTENSION:

class TargetingSpanProcessor(SpanProcessor):
"""
A custom SpanProcessor that attaches the targeting ID to the span and baggage when a new span is started.
Expand Down
Loading