Interface EventLoggerBuilder
- All Known Implementing Classes:
DefaultEventLoggerProvider.NoopEventLoggerBuilder
,SdkEventLoggerProvider.SdkEventLoggerBuilder
public interface EventLoggerBuilder
Builder class for creating
EventLogger
instances.
EventLogger
s are identified by their scope name, version, and schema URL. These
identifying fields, along with attributes, combine to form the instrumentation scope, which is
attached to all events produced by the EventLogger
.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Gets or creates aEventLogger
instance.setInstrumentationVersion
(String instrumentationScopeVersion) Sets the instrumentation scope version of the resultingEventLogger
.setSchemaUrl
(String schemaUrl) Set the scope schema URL of the resultingEventLogger
.
-
Method Details
-
setSchemaUrl
Set the scope schema URL of the resultingEventLogger
. Schema URL is part ofEventLogger
identity.- Parameters:
schemaUrl
- The schema URL.- Returns:
- this
-
setInstrumentationVersion
Sets the instrumentation scope version of the resultingEventLogger
. Version is part ofEventLogger
identity.- Parameters:
instrumentationScopeVersion
- The instrumentation scope version.- Returns:
- this
-
build
EventLogger build()Gets or creates aEventLogger
instance.- Returns:
- a
EventLogger
instance configured with the provided options.
-