Interface EventLoggerBuilder
public interface EventLoggerBuilder
Builder class for creating
EventLogger instances.
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 the EventLogger.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Gets or creates aEventLoggerinstance.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 ofEventLoggeridentity.- Parameters:
schemaUrl- The schema URL.- Returns:
- this
-
setInstrumentationVersion
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.
-