Index
All Classes and Interfaces|All Packages
A
- addLogRecordProcessor(LogRecordProcessor) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProviderBuilder
-
Add a log processor.
- asString() - Method in interface io.opentelemetry.sdk.logs.data.Body
-
Returns the String value of this
Body.
B
- BatchLogRecordProcessor - Class in io.opentelemetry.sdk.logs.export
-
Implementation of the
LogRecordProcessorthat batches logs exported by the SDK then pushes them to the exporter pipeline. - BatchLogRecordProcessorBuilder - Class in io.opentelemetry.sdk.logs.export
-
Builder class for
BatchLogRecordProcessor. - Body - Interface in io.opentelemetry.sdk.logs.data
-
This represents all the possible values for a log message body.
- Body.Type - Enum in io.opentelemetry.sdk.logs.data
-
An enum that represents all the possible value types for an
Body. - build() - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Returns a new
BatchLogRecordProcessorthat batches, then forwards them to the givenlogRecordExporter. - build() - Method in class io.opentelemetry.sdk.logs.LogLimitsBuilder
-
Builds and returns a
LogLimitswith the values of this builder. - build() - Method in class io.opentelemetry.sdk.logs.SdkLoggerProviderBuilder
-
Create a
SdkLoggerProviderinstance. - builder() - Static method in class io.opentelemetry.sdk.logs.LogLimits
-
Returns a new
LogLimitsBuilderto construct aLogLimits. - builder() - Static method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
-
Returns a new
SdkLoggerProviderBuilderforSdkLoggerProvider. - builder(LogRecordExporter) - Static method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor
-
Returns a new Builder for
BatchLogRecordProcessor.
C
- close() - Method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Closes this
LogRecordExporter, releasing any resources. - close() - Method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Closes this
LogRecordProcessorafter processing any remaining log records, releasing any resources. - close() - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
- composite(LogRecordExporter...) - Static method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Returns a
LogRecordExporterwhich delegates all exports to theexportersin order. - composite(LogRecordProcessor...) - Static method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Returns a
LogRecordProcessorwhich simply delegates to all processing to theprocessorsin order. - composite(Iterable<LogRecordExporter>) - Static method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Returns a
LogRecordExporterwhich delegates all exports to theexportersin order. - composite(Iterable<LogRecordProcessor>) - Static method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Returns a
LogRecordProcessorwhich simply delegates to all processing to theprocessorsin order. - create() - Static method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
-
Returns a new instance of the
InMemoryLogRecordExporter. - create(LoggerProvider) - Static method in class io.opentelemetry.sdk.logs.SdkEventEmitterProvider
-
Create a
SdkEventEmitterProviderwhich delegates to thedelegateLoggerProvider. - create(LogRecordExporter) - Static method in class io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
-
Returns a new
SimpleLogRecordProcessorwhich exports logs to theLogRecordExportersynchronously.
E
- empty() - Static method in interface io.opentelemetry.sdk.logs.data.Body
-
Return an empty
Body. - EMPTY - Enum constant in enum io.opentelemetry.sdk.logs.data.Body.Type
- eventEmitterBuilder(String) - Method in class io.opentelemetry.sdk.logs.SdkEventEmitterProvider
- export(Collection<LogRecordData>) - Method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
-
Exports the collection of
Logs into the inmemory queue. - export(Collection<LogRecordData>) - Method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Exports the collections of given
LogRecordData.
F
- flush() - Method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
- flush() - Method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Exports the collection of
LogRecordDatathat have not yet been exported. - forceFlush() - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor
- forceFlush() - Method in class io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
- forceFlush() - Method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Process all log records that have not yet been processed.
- forceFlush() - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
-
Request the active log processor to process all logs that have not yet been processed.
G
- get(String) - Method in class io.opentelemetry.sdk.logs.SdkEventEmitterProvider
- get(String) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
- getAttributes() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the attributes for this log, or
Attributes.empty()if unset. - getBody() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the body for this log, or
Body.empty()if unset. - getDefault() - Static method in class io.opentelemetry.sdk.logs.LogLimits
-
Returns the default
LogLimits. - getEpochNanos() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the epoch timestamp in nanos when the log was recorded.
- getFinishedLogItems() - Method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
-
Returns a
Listof the finishedLogs, represented byLogRecord. - getInstrumentationScopeInfo() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the instrumentation scope that generated this log.
- getMaxAttributeValueLength() - Method in class io.opentelemetry.sdk.logs.LogLimits
-
Returns the max number of characters for string attribute values.
- getMaxNumberOfAttributes() - Method in class io.opentelemetry.sdk.logs.LogLimits
-
Returns the max number of attributes per
LogRecordData. - getResource() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the resource of this log.
- getSeverity() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the severity for this log, or
Severity.UNDEFINED_SEVERITY_NUMBERif unset. - getSeverityText() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the severity text for this log, or null if unset.
- getSpanContext() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Return the span context for this log, or
SpanContext.getInvalid()if unset. - getTotalAttributeCount() - Method in interface io.opentelemetry.sdk.logs.data.LogRecordData
-
Returns the total number of attributes that were recorded on this log.
- getType() - Method in interface io.opentelemetry.sdk.logs.data.Body
-
Returns the type of the
Body.
I
- InMemoryLogRecordExporter - Class in io.opentelemetry.sdk.logs.export
-
A
LogRecordExporterimplementation that can be used to test OpenTelemetry integration. - io.opentelemetry.sdk.logs - package io.opentelemetry.sdk.logs
-
The OpenTelemetry SDK implementation of logging.
- io.opentelemetry.sdk.logs.data - package io.opentelemetry.sdk.logs.data
-
The data format to model logs for export.
- io.opentelemetry.sdk.logs.export - package io.opentelemetry.sdk.logs.export
-
Log exporters.
L
- loggerBuilder(String) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
- LogLimits - Class in io.opentelemetry.sdk.logs
-
Class that holds limits enforced during log recording.
- LogLimitsBuilder - Class in io.opentelemetry.sdk.logs
-
Builder for
LogLimits. - LogRecordData - Interface in io.opentelemetry.sdk.logs.data
-
Log definition as described in OpenTelemetry Log Data Model.
- LogRecordExporter - Interface in io.opentelemetry.sdk.logs.export
-
An exporter is responsible for taking a collection of
LogRecordDatas and transmitting them to their ultimate destination. - LogRecordProcessor - Interface in io.opentelemetry.sdk.logs
-
LogRecordProcessoris the interface to allow synchronous hooks for log records emitted byLoggers.
O
- onEmit(Context, ReadWriteLogRecord) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor
- onEmit(Context, ReadWriteLogRecord) - Method in class io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
- onEmit(Context, ReadWriteLogRecord) - Method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Called when a
LoggerLogRecordBuilder.emit()s a log record.
R
- ReadWriteLogRecord - Interface in io.opentelemetry.sdk.logs
-
A log record that can be read from and written to.
- reset() - Method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
-
Clears the internal
Listof finishedLogs.
S
- SdkEventEmitterProvider - Class in io.opentelemetry.sdk.logs
-
SDK implementation for
EventEmitterProvider. - SdkLoggerProvider - Class in io.opentelemetry.sdk.logs
-
SDK implementation for
LoggerProvider. - SdkLoggerProviderBuilder - Class in io.opentelemetry.sdk.logs
-
Builder class for
SdkLoggerProviderinstances. - setAttribute(AttributeKey<T>, T) - Method in interface io.opentelemetry.sdk.logs.ReadWriteLogRecord
-
Sets an attribute on the log record.
- setClock(Clock) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProviderBuilder
-
Assign a
Clock. - setExporterTimeout(long, TimeUnit) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the maximum time an export will be allowed to run before being cancelled.
- setExporterTimeout(Duration) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the maximum time an export will be allowed to run before being cancelled.
- setLogLimits(Supplier<LogLimits>) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProviderBuilder
- setMaxAttributeValueLength(int) - Method in class io.opentelemetry.sdk.logs.LogLimitsBuilder
-
Sets the max number of characters for string attribute values.
- setMaxExportBatchSize(int) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the maximum batch size for every export.
- setMaxNumberOfAttributes(int) - Method in class io.opentelemetry.sdk.logs.LogLimitsBuilder
-
Sets the max number of attributes per
LogRecordData. - setMaxQueueSize(int) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the maximum number of Logs that are kept in the queue before start dropping.
- setMeterProvider(MeterProvider) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the
MeterProviderto use to collect metrics related to batch export. - setResource(Resource) - Method in class io.opentelemetry.sdk.logs.SdkLoggerProviderBuilder
-
Assign a
Resourceto be attached to allLogRecordDatacreated byLoggers obtained from theSdkLoggerProvider. - setScheduleDelay(long, TimeUnit) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the delay interval between two consecutive exports.
- setScheduleDelay(Duration) - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessorBuilder
-
Sets the delay interval between two consecutive exports.
- shutdown() - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor
- shutdown() - Method in class io.opentelemetry.sdk.logs.export.InMemoryLogRecordExporter
-
Clears the internal
Listof finishedLogs. - shutdown() - Method in interface io.opentelemetry.sdk.logs.export.LogRecordExporter
-
Shutdown the log exporter.
- shutdown() - Method in class io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
- shutdown() - Method in interface io.opentelemetry.sdk.logs.LogRecordProcessor
-
Shutdown the log processor.
- shutdown() - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
-
Attempt to shut down the active log processor.
- SimpleLogRecordProcessor - Class in io.opentelemetry.sdk.logs.export
-
An implementation of the
LogRecordProcessorthat passesLogRecordDatadirectly to the configured exporter. - string(String) - Static method in interface io.opentelemetry.sdk.logs.data.Body
-
Returns an
Bodywith a string value. - STRING - Enum constant in enum io.opentelemetry.sdk.logs.data.Body.Type
T
- toBuilder() - Method in class io.opentelemetry.sdk.logs.LogLimits
-
Returns a
LogLimitsBuilderinitialized to the same property values as the current instance. - toLogRecordData() - Method in interface io.opentelemetry.sdk.logs.ReadWriteLogRecord
-
Return an immutable
LogRecordDatainstance representing this log record. - toString() - Method in class io.opentelemetry.sdk.logs.export.BatchLogRecordProcessor
- toString() - Method in class io.opentelemetry.sdk.logs.export.SimpleLogRecordProcessor
- toString() - Method in class io.opentelemetry.sdk.logs.SdkLoggerProvider
V
- valueOf(String) - Static method in enum io.opentelemetry.sdk.logs.data.Body.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum io.opentelemetry.sdk.logs.data.Body.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
All Classes and Interfaces|All Packages