Interface EventLoggerBuilder
-
- All Known Implementing Classes:
DefaultEventLoggerProvider.NoopEventLoggerBuilder
,SdkEventLoggerProvider.SdkEventLoggerBuilder
public interface EventLoggerBuilder
Builder class for creatingEventLogger
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 theEventLogger
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EventLogger
build()
Gets or creates aEventLogger
instance.EventLoggerBuilder
setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
Sets the instrumentation scope version of the resultingEventLogger
.EventLoggerBuilder
setSchemaUrl(java.lang.String schemaUrl)
Set the scope schema URL of the resultingEventLogger
.
-
-
-
Method Detail
-
setSchemaUrl
EventLoggerBuilder setSchemaUrl(java.lang.String schemaUrl)
Set the scope schema URL of the resultingEventLogger
. Schema URL is part ofEventLogger
identity.- Parameters:
schemaUrl
- The schema URL.- Returns:
- this
-
setInstrumentationVersion
EventLoggerBuilder setInstrumentationVersion(java.lang.String instrumentationScopeVersion)
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.
-
-