@Experimental public class TraceOptions extends Object
Modifier and Type | Field and Description |
---|---|
static ConfigOption<Boolean> |
REPORT_EVENTS_AS_SPANS
Deprecated.
|
static ConfigOption<Map<String,String>> |
REPORTER_ADDITIONAL_VARIABLES |
static ConfigOption<String> |
REPORTER_CONFIG_PARAMETER |
static ConfigOption<String> |
REPORTER_FACTORY_CLASS |
static ConfigOption<String> |
TRACE_REPORTERS_LIST
An optional list of reporter names.
|
Modifier and Type | Method and Description |
---|---|
static Configuration |
forTraceReporter(Configuration configuration,
String reporterName)
Returns a view over the given configuration via which options can be set/retrieved for the
given reporter.
|
public static final ConfigOption<String> TRACE_REPORTERS_LIST
Example:
traces.reporters = foo,bar
traces.reporter.foo.class = org.apache.flink.traces.reporter.OpenTelemetryTraceReporter
traces.reporter.foo.endpoint = 127.0.0.1:4137
@Deprecated public static final ConfigOption<Boolean> REPORT_EVENTS_AS_SPANS
public static final ConfigOption<String> REPORTER_FACTORY_CLASS
public static final ConfigOption<String> REPORTER_CONFIG_PARAMETER
public static final ConfigOption<Map<String,String>> REPORTER_ADDITIONAL_VARIABLES
@Experimental public static Configuration forTraceReporter(Configuration configuration, String reporterName)
Configuration config = ... MetricOptions.forReporter(config, "my_reporter") .set(MetricOptions.REPORTER_INTERVAL, Duration.ofSeconds(10)) ...
configuration
- backing configurationreporterName
- reporter nameCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.