Interface EventLoggerBuilder
-
- All Known Implementing Classes:
DefaultEventLoggerProvider.NoopEventLoggerBuilder,SdkEventLoggerProvider.SdkEventLoggerBuilder
public interface EventLoggerBuilderBuilder class for creatingEventLoggerinstances.EventLoggers 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 EventLoggerbuild()Gets or creates aEventLoggerinstance.EventLoggerBuildersetInstrumentationVersion(java.lang.String instrumentationScopeVersion)Sets the instrumentation scope version of the resultingEventLogger.EventLoggerBuildersetSchemaUrl(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 ofEventLoggeridentity.- 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 ofEventLoggeridentity.- Parameters:
instrumentationScopeVersion- The instrumentation scope version.- Returns:
- this
-
build
EventLogger build()
Gets or creates aEventLoggerinstance.- Returns:
- a
EventLoggerinstance configured with the provided options.
-
-