public static final class CinnamonAttributes.Instrumented
extends java.lang.Object
implements akka.stream.Attributes.Attribute
| Constructor and Description |
|---|
Instrumented() |
Instrumented(boolean reportByName,
boolean reportByInstance,
scala.Option<java.lang.String> name,
scala.collection.immutable.Map<java.lang.String,java.lang.String> tags,
boolean perOperator,
boolean perConnection,
boolean perBoundary,
boolean perFlow,
boolean substreams,
boolean traceable) |
| Modifier and Type | Method and Description |
|---|---|
akka.stream.Attributes |
attributes()
Java API: put this Instrumented attribute in an Attributes object.
|
scala.Option<java.lang.String> |
name() |
boolean |
perBoundary() |
boolean |
perConnection() |
boolean |
perFlow() |
boolean |
perOperator() |
boolean |
reportByInstance() |
boolean |
reportByName() |
CinnamonAttributes.Instrumented |
setTraceable()
Java API: enable traceable instrumentation.
|
CinnamonAttributes.Instrumented |
setTraceable(boolean enabled)
Java API: set traceable instrumentation.
|
boolean |
substreams() |
scala.collection.immutable.Map<java.lang.String,java.lang.String> |
tags() |
java.lang.String |
toString() |
boolean |
traceable() |
CinnamonAttributes.Instrumented |
withName(java.lang.String name)
Java API: set name for instrumentation.
|
CinnamonAttributes.Instrumented |
withoutPerConnection()
Java API: disable per-connection instrumentation.
|
CinnamonAttributes.Instrumented |
withoutPerFlow()
Java API: disable per-flow instrumentation.
|
CinnamonAttributes.Instrumented |
withoutPerOperator()
Java API: disable per-operator instrumentation.
|
CinnamonAttributes.Instrumented |
withoutSubstreams()
Java API: disable substreams instrumentation.
|
CinnamonAttributes.Instrumented |
withPerBoundary()
Java API: enable per-boundary instrumentation.
|
CinnamonAttributes.Instrumented |
withPerBoundary(boolean enabled)
Java API: set per-boundary instrumentation.
|
CinnamonAttributes.Instrumented |
withPerConnection()
Java API: enable per-connection instrumentation.
|
CinnamonAttributes.Instrumented |
withPerConnection(boolean enabled)
Java API: set per-connection instrumentation.
|
CinnamonAttributes.Instrumented |
withPerFlow()
Java API: enable per-flow instrumentation.
|
CinnamonAttributes.Instrumented |
withPerFlow(boolean enabled)
Java API: set per-flow instrumentation.
|
CinnamonAttributes.Instrumented |
withPerOperator()
Java API: enable per-operator instrumentation.
|
CinnamonAttributes.Instrumented |
withPerOperator(boolean enabled)
Java API: set per-operator instrumentation.
|
CinnamonAttributes.Instrumented |
withReportByInstance()
Java API: set report by instance.
|
CinnamonAttributes.Instrumented |
withReportByName()
Java API: set report by name.
|
CinnamonAttributes.Instrumented |
withReportByName(java.lang.String name)
Java API: set report by name and provide name.
|
CinnamonAttributes.Instrumented |
withSubstreams()
Java API: enable substreams instrumentation.
|
CinnamonAttributes.Instrumented |
withSubstreams(boolean enabled)
Java API: set substreams instrumentation.
|
CinnamonAttributes.Instrumented |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
Java API: set tags on stream identity.
|
public Instrumented(boolean reportByName,
boolean reportByInstance,
scala.Option<java.lang.String> name,
scala.collection.immutable.Map<java.lang.String,java.lang.String> tags,
boolean perOperator,
boolean perConnection,
boolean perBoundary,
boolean perFlow,
boolean substreams,
boolean traceable)
public Instrumented()
public akka.stream.Attributes attributes()
public scala.Option<java.lang.String> name()
public boolean perBoundary()
public boolean perConnection()
public boolean perFlow()
public boolean perOperator()
public boolean reportByInstance()
public boolean reportByName()
public CinnamonAttributes.Instrumented setTraceable()
public CinnamonAttributes.Instrumented setTraceable(boolean enabled)
enabled - whether traceable instrumentation is enabledpublic boolean substreams()
public scala.collection.immutable.Map<java.lang.String,java.lang.String> tags()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean traceable()
public CinnamonAttributes.Instrumented withName(java.lang.String name)
name - name of graph to use for instrumentationpublic CinnamonAttributes.Instrumented withPerBoundary()
public CinnamonAttributes.Instrumented withPerBoundary(boolean enabled)
enabled - whether per-boundary instrumentation is enabledpublic CinnamonAttributes.Instrumented withPerConnection()
public CinnamonAttributes.Instrumented withPerConnection(boolean enabled)
enabled - whether per-connection instrumentation is enabledpublic CinnamonAttributes.Instrumented withPerFlow()
public CinnamonAttributes.Instrumented withPerFlow(boolean enabled)
enabled - whether per-flow instrumentation is enabledpublic CinnamonAttributes.Instrumented withPerOperator()
public CinnamonAttributes.Instrumented withPerOperator(boolean enabled)
enabled - whether per-operator instrumentation is enabledpublic CinnamonAttributes.Instrumented withReportByInstance()
public CinnamonAttributes.Instrumented withReportByName()
public CinnamonAttributes.Instrumented withReportByName(java.lang.String name)
name - name of graph to use for instrumentationpublic CinnamonAttributes.Instrumented withSubstreams()
public CinnamonAttributes.Instrumented withSubstreams(boolean enabled)
enabled - whether substreams instrumentation is enabledpublic CinnamonAttributes.Instrumented withTags(java.util.Map<java.lang.String,java.lang.String> tags)
tags - tags to be added to stream identitypublic CinnamonAttributes.Instrumented withoutPerConnection()
public CinnamonAttributes.Instrumented withoutPerFlow()
public CinnamonAttributes.Instrumented withoutPerOperator()
public CinnamonAttributes.Instrumented withoutSubstreams()
Cinnamon API. Copyright (c) 2015–2021 Lightbend.