OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MeasureMap
(Results
1 - 13
of
13
) sorted by null
/external/opencensus-java/api/src/main/java/io/opencensus/stats/
StatsRecorder.java
33
public abstract
MeasureMap
newMeasureMap();
MeasureMap.java
31
public abstract class
MeasureMap
{
42
public abstract
MeasureMap
put(MeasureDouble measure, double value);
53
public abstract
MeasureMap
put(MeasureLong measure, long value);
56
* Associate the contextual information of an {@code Exemplar} to this {@link
MeasureMap
}.
67
public
MeasureMap
putAttachment(String key, String value) {
77
* <p>This method records all of the stats in the {@code
MeasureMap
} every time it is called.
86
* <p>This method records all of the stats in the {@code
MeasureMap
} every time it is called.
NoopStats.java
65
* Returns a {@code
MeasureMap
} that ignores all calls to {@link
MeasureMap
#put}.
67
* @return a {@code
MeasureMap
} that ignores all calls to {@code
MeasureMap
#put}.
69
static
MeasureMap
getNoopMeasureMap() {
118
public
MeasureMap
newMeasureMap() {
124
private static final class NoopMeasureMap extends
MeasureMap
{
125
static final
MeasureMap
INSTANCE = new NoopMeasureMap();
128
public
MeasureMap
put(MeasureDouble measure, double value) {
133
public
MeasureMap
put(MeasureLong measure, long value)
[
all
...]
/external/opencensus-java/contrib/exemplar_util/src/main/java/io/opencensus/contrib/exemplar/util/
ExemplarUtils.java
20
import io.opencensus.stats.
MeasureMap
;
54
* Puts a {@link SpanContext} into the attachments of the given {@link
MeasureMap
}.
59
* @param
measureMap
the {@code
MeasureMap
}
63
public static void putSpanContextAttachments(
MeasureMap
measureMap
, SpanContext spanContext) {
64
checkNotNull(
measureMap
, "
measureMap
");
66
measureMap
.putAttachment(ATTACHMENT_KEY_TRACE_ID, spanContext.getTraceId().toLowerBase16());
67
measureMap
.putAttachment(ATTACHMENT_KEY_SPAN_ID, spanContext.getSpanId().toLowerBase16())
[
all
...]
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
MeasureMapImpl.java
21
import io.opencensus.stats.
MeasureMap
;
25
/** Implementation of {@link
MeasureMap
}. */
26
final class MeasureMapImpl extends
MeasureMap
{
51
public
MeasureMap
putAttachment(String key, String value) {
/external/opencensus-java/contrib/exemplar_util/src/test/java/io/opencensus/contrib/exemplar/util/
ExemplarUtilsTest.java
25
import io.opencensus.stats.
MeasureMap
;
54
FakeMeasureMap
measureMap
= new FakeMeasureMap();
55
ExemplarUtils.putSpanContextAttachments(
measureMap
, SPAN_CONTEXT);
56
assertThat(
measureMap
.attachments)
67
thrown.expectMessage("
measureMap
");
73
FakeMeasureMap
measureMap
= new FakeMeasureMap();
76
ExemplarUtils.putSpanContextAttachments(
measureMap
, null);
79
private static final class FakeMeasureMap extends
MeasureMap
{
84
public
MeasureMap
putAttachment(String key, String value) {
90
public
MeasureMap
put(MeasureDouble measure, double value)
[
all
...]
/external/opencensus-java/api/src/test/java/io/opencensus/stats/
NoopStatsTest.java
98
MeasureMap
measureMap
= NoopStats.getNoopStatsRecorder().newMeasureMap();
101
measureMap
.putAttachment(null, "value");
106
MeasureMap
measureMap
= NoopStats.getNoopStatsRecorder().newMeasureMap();
109
measureMap
.putAttachment("key", null);
128
MeasureMap
measureMap
= NoopStats.getNoopStatsRecorder().newMeasureMap();
131
measureMap
.record(null);
/external/opencensus-java/examples/src/main/java/io/opencensus/examples/zpages/
ZPagesTester.java
23
import io.opencensus.stats.
MeasureMap
;
57
MeasureMap
measureMap
=
80
measureMap
.record(
86
MeasureMap
measureMapErrors =
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
StatsTestUtils.java
28
import io.opencensus.stats.
MeasureMap
;
135
public
MeasureMap
newMeasureMap() {
222
public static final class FakeStatsRecord extends
MeasureMap
{
232
public
MeasureMap
put(Measure.MeasureDouble measure, double value) {
238
public
MeasureMap
put(Measure.MeasureLong measure, long value) {
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
CensusStatsModule.java
40
import io.opencensus.stats.
MeasureMap
;
389
MeasureMap
measureMap
= module.statsRecorder.newMeasureMap()
404
measureMap
.put(RpcMeasureConstants.RPC_CLIENT_ERROR_COUNT, 1);
406
measureMap
.record(
589
MeasureMap
measureMap
= module.statsRecorder.newMeasureMap()
600
measureMap
.put(RpcMeasureConstants.RPC_SERVER_ERROR_COUNT, 1);
602
measureMap
.record(
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
StatsRecorderImplTest.java
37
import io.opencensus.stats.
MeasureMap
;
277
MeasureMap
statsRecord = statsRecorder.newMeasureMap().put(MEASURE_DOUBLE, 1.0);
ViewManagerImplTest.java
44
import io.opencensus.stats.
MeasureMap
;
810
MeasureMap
measureMap
= statsRecorder.newMeasureMap();
811
putToMeasureMap(
measureMap
, measure1, value1);
812
putToMeasureMap(
measureMap
, measure2, value2);
813
measureMap
.record(tags);
[
all
...]
/external/opencensus-java/
CHANGELOG.md
19
- Add an API
MeasureMap
.putAttachment() for recording exemplars.
Completed in 130 milliseconds