LogsSettingsinterface
Properties (24)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| additionalAttributes⚓︎ | { [x: string]: unknown } | (() => { [x: string]: unknown }) | x | x | Additional logs attributes to publish as part of each log entry, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., |
| additionalResourceAttributes⚓︎ | { [x: string]: unknown } | (() => { [x: string]: unknown }) | x | x | Additional attributes to publish as part of the OTEL resource definition, specified as key/value pairs. You can use environment variables as values. Environment variables must start and end with a percent sign (e.g., A function is asked once, on the first read after the build, and its answer is kept: the SDK's resource is made once, at its creation, and the readers that look at the resource attributes on every span (the span filters' context, the sampler) see the same values. |
| addResourceAttributesToAttributes⚓︎ | boolean | false | x | Whether to add resource attributes to log entry attributes. |
| attributeSettings⚓︎ | { [x: string]: AttributeSettings } | x | x | Controls the publishing of specific attributes of the log records, by name. An entry
names an attribute by its flattened (dot-separated) name, or everything nested under it -
Applies to the attributes of every log record - its own and the additional attributes -
after the log filters (which match on the attributes as they came, and have
The |
| attributeSettingsMode⚓︎ | AttributeSettingsMode | x | x | How the |
| compression⚓︎ | CompressionAlgorithm | x | x | Compression algorithm to use when exporting logs. |
| concurrencyLimit⚓︎ | number | x | x | Maximum number of concurrent logs export requests. |
| defaults⚓︎ | LogOptions | x | x | Default settings if appropriate entries aren't found in 'filters' collection. |
| enabled⚓︎ | boolean | false | Whether logging functionality is enabled. If disabled, API is still usable, but methods are no-ops. |
|
| exporterSettings⚓︎ | OTLPExporterConfigBase | x | x | Settings for the OTLP exporter used to send logs. |
| filters⚓︎ | LogFilter[] | x | x | Array of filter entries used to determine whether a particular log entry will be emitted, and which attributes will be included. If no matching filter entry is found, the settings from 'defaults' are used. |
| headers⚓︎ | { [x: string]: string } | (() => { [x: string]: string }) | (() => Promise<{ [x: string]: string }>) | x | x | Additional headers to send in HTTP requests, e.g. when using HTTP exporters. |
| keepAlive⚓︎ | boolean | true | x | Whether to keep the connection alive when sending logs. |
| logExporters⚓︎ | (exporterSettings: OTLPExporterNodeConfigBase, settings: LogsSettings, otelSettings: Settings) => LogRecordExporter[] | x | x | Log record exporters. |
| loggerProvider⚓︎ | (loggerProviderSettings: LoggerProviderConfig, settings: LogsSettings, otelSettings: Settings) => LoggerProvider | x | x | Logger provider instance. |
| loggerProviderSettings⚓︎ | LoggerProviderConfig | x | x | Configuration for the logger provider. |
| logProcessors⚓︎ | (processorSettings: BatchLogRecordProcessorOptions | undefined, exporterSettings: OTLPExporterNodeConfigBase, settings: LogsSettings, otelSettings: Settings) => LogRecordProcessor[] | x | x | Log record processors. |
| maxAttributeDepth⚓︎ | number | 5 | x | How deep the library should recurse into objects when adding labels to logs. |
| processorSettings⚓︎ | BatchLogRecordProcessorOptions | x | x | Settings for batching log records before export. |
| publishInterval⚓︎ | number | x | x | Interval in milliseconds between logs export batches. |
| ssoAuth⚓︎ | SSOAuthSettings | x | x | Overrides the properties of the top-level |
| timeoutMillis⚓︎ | number | 10000ms. | x | Maximum time the OTLP exporter will wait for each batch export. |
| url⚓︎ | string | x | x | OTLP logs exporter endpoint URL. |
| useDefaultFilters⚓︎ | boolean | true | x | If true, use a predefined list of filters for well-known platform logs. |