@microsoft/opentelemetry
    Preparing search index...

    Class GenAIMainAgentLogRecordProcessor

    Copies any microsoft.gen_ai.main_agent.* attributes from the current span onto every emitted log record.

    Implements

    • LogRecordProcessor
    Index
    • Flushes pending work. No-op for this processor.

      Returns Promise<void>

    • Copies any microsoft.gen_ai.main_agent.* attributes from the active span onto the emitted log record.

      Parameters

      • logRecord: SdkLogRecord

        The log record being emitted.

      • OptionalcontextArg: Context

        Optional context used to resolve the current span.

      Returns void

    • Shuts down the processor. No-op for this processor.

      Returns Promise<void>