Skip to content

Commit b314b28

Browse files
committed
remove attach_targeting_info
1 parent 3643d9a commit b314b28

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

featuremanagement/azuremonitor/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
55
# -------------------------------------------------------------------------
6-
from ._send_telemetry import publish_telemetry, track_event, attach_targeting_info, TargetingSpanProcessor
6+
from ._send_telemetry import publish_telemetry, track_event, TargetingSpanProcessor
77

88

99
__all__ = [
1010
"publish_telemetry",
1111
"track_event",
12-
"attach_targeting_info",
1312
"TargetingSpanProcessor",
1413
]

featuremanagement/azuremonitor/_send_telemetry.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# --------------------------------------------------------------------------
66
import logging
77
import inspect
8-
from typing import Dict, Optional, Callable
8+
from typing import Any, Callable, Dict, Optional
99
from .._models import VariantAssignmentReason, EvaluationEvent, TargetingContext
1010

1111
logger = logging.getLogger(__name__)
@@ -123,7 +123,7 @@ class TargetingSpanProcessor(SpanProcessor):
123123
context if one isn't provided.
124124
"""
125125

126-
def __init__(self, **kwargs) -> None:
126+
def __init__(self, **kwargs: Any) -> None:
127127
self._targeting_context_accessor: Optional[Callable[[], TargetingContext]] = kwargs.pop(
128128
"targeting_context_accessor", None
129129
)
@@ -152,5 +152,3 @@ def on_start(self, span: Span, parent_context: Optional[Context] = None) -> None
152152
logger.debug("TargetingContext does not have a user ID.")
153153
return
154154
span.set_attribute(TARGETING_ID, targeting_context.user_id)
155-
156-

0 commit comments

Comments
 (0)