logRecord
Home > @gooddata/sdk-pluggable-application-model > IPluggableAppTelemetryCallbacks > logRecord
IPluggableAppTelemetryCallbacks.logRecord property
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Forward a structured OpenTelemetry log record to the host's page-level OTel logger.
Signature:
logRecord?: (record: IPluggableAppLogRecord) => void;
Remarks
Unlike IPluggableAppTelemetryCallbacks.trackEvent (which routes to the analytics trackers — Matomo / Amplitude), this targets the host's OpenTelemetry logging pipeline (OTLP /v1/logs). It exists because the OTel Logs API cannot be reliably shared across module-federation bundles the way the global tracer is, so module logs are forwarded as plain data and re-emitted by the host. Optional: a host that has no OTel logger configured simply omits it (the call is a no-op).