Share via


@microsoft/agents-a365-observability package

Classes

BaggageBuilder

Per request baggage builder for OpenTelemetry context propagation.

This class provides a fluent API for setting baggage values that will be propagated in the OpenTelemetry context.

Example

const scope = new BaggageBuilder()
  .tenantId("tenant-123")
  .agentId("agent-456")
  .correlationId("corr-789")
  .build();

scope.enter();
// Baggage is set in this context
// ... do work ...
scope.exit();
// Baggage is restored after exiting the context
BaggageScope

Context manager for baggage scope.

This class manages the lifecycle of baggage values, setting them on enter and restoring the previous context on exit.

Builder

Builder for configuring Agent 365 with OpenTelemetry tracing

ExecuteToolScope

Provides OpenTelemetry tracing scope for AI tool execution operations.

InferenceScope

Provides OpenTelemetry tracing scope for generative AI inference operations.

InvokeAgentScope

Provides OpenTelemetry tracing scope for AI agent invocation operations.

ObservabilityManager

Main entry point for Agent 365 providing OpenTelemetry tracing for AI agents and tools

OpenTelemetryConstants

OpenTelemetry constants for Agent 365

OpenTelemetryScope

Base class for OpenTelemetry tracing scopes

Interfaces

AgentDetails

Details about an AI agent

AgentRequest

Represents a request to an agent with telemetry context

BuilderOptions

Configuration options for Agent 365 Observability Builder

CallerDetails

Details about a caller

EnhancedAgentDetails

Enhanced agent details with additional properties

InferenceDetails

Details for an inference call matching C# implementation

InferenceResponse

Details for recording the response from an inference call

InvokeAgentDetails

Details for invoking another agent

ServiceEndpoint

Represents an endpoint for agent invocation

SourceMetadata

Represents metadata about the source of an invocation

TenantDetails

Details about a tenant

ToolCallDetails

Details of a tool call made by an agent

Enums

ExecutionType

Represents different types of agent invocations

InferenceOperationType

Represents different operation for types for model inference

InvocationRole

Represents different roles that can invoke an agent