@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

    Constructors

    Methods

    • Forces to export all finished log records

      Returns Promise<void>

    • Called when a LogRecord is emit

      Parameters

      • logRecord: SdkLogRecord

        the ReadWriteLogRecord that just emitted.

      • OptionalcontextArg: Context

      Returns void

    • Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.

      Returns Promise<void>