microsoft.opentelemetry.a365.hosting.scope_helpers.utils module

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.resolve_sub_channel(activity)[source]

Resolve sub_channel from ChannelId, falling back to productContext in channel_data.

Return type:

str | None

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.get_caller_pairs(activity)[source]
Return type:

Iterator[tuple[str, Any]]

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.get_target_agent_pairs(activity)[source]
Return type:

Iterator[tuple[str, Any]]

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.get_tenant_id_pair(activity)[source]
Return type:

Iterator[tuple[str, Any]]

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.get_channel_pairs(activity)[source]

Generate channel pairs from activity, handling both string and ChannelId object cases.

Parameters:

activity (Activity) – The activity object (Activity instance or dict)

Return type:

Iterator[tuple[str, Any]]

Returns:

Iterator of (key, value) tuples for channel information

microsoft.opentelemetry.a365.hosting.scope_helpers.utils.get_conversation_pairs(activity)[source]
Return type:

Iterator[tuple[str, Any]]