Searched refs:NetworkEvent (Results 1 – 15 of 15) sorted by relevance
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
D | NetworkEventTest.java | 31 NetworkEvent.builder(null, 1L).build(); in buildNetworkEvent_NullType() 36 NetworkEvent networkEvent = NetworkEvent.builder(NetworkEvent.Type.SENT, 1L).build(); in buildNetworkEvent_WithRequiredFields() 37 assertThat(networkEvent.getType()).isEqualTo(NetworkEvent.Type.SENT); in buildNetworkEvent_WithRequiredFields() 45 NetworkEvent networkEvent = in buildNetworkEvent_WithTimestamp() 46 NetworkEvent.builder(NetworkEvent.Type.SENT, 1L) in buildNetworkEvent_WithTimestamp() 50 assertThat(networkEvent.getType()).isEqualTo(NetworkEvent.Type.SENT); in buildNetworkEvent_WithTimestamp() 57 NetworkEvent networkEvent = in buildNetworkEvent_WithUncompressedMessageSize() 58 NetworkEvent.builder(NetworkEvent.Type.SENT, 1L).setUncompressedMessageSize(123L).build(); in buildNetworkEvent_WithUncompressedMessageSize() 60 assertThat(networkEvent.getType()).isEqualTo(NetworkEvent.Type.SENT); in buildNetworkEvent_WithUncompressedMessageSize() 68 NetworkEvent networkEvent = in buildNetworkEvent_WithMessageSize() [all …]
|
D | SpanTest.java | 110 NetworkEvent networkEvent = in addMessageEventDefaultImplementation() 111 NetworkEvent.builder(NetworkEvent.Type.SENT, 123) in addMessageEventDefaultImplementation()
|
D | BlankSpanTest.java | 55 BlankSpan.INSTANCE.addNetworkEvent(NetworkEvent.builder(NetworkEvent.Type.SENT, 1L).build()); in doNotCrash()
|
D | NoopSpan.java | 53 public void addNetworkEvent(NetworkEvent networkEvent) {} in addNetworkEvent()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/internal/ |
D | BaseMessageEventUtils.java | 45 io.opencensus.trace.NetworkEvent networkEvent = (io.opencensus.trace.NetworkEvent) event; in asMessageEvent() 47 (networkEvent.getType() == io.opencensus.trace.NetworkEvent.Type.RECV) in asMessageEvent() 63 public static io.opencensus.trace.NetworkEvent asNetworkEvent( in asNetworkEvent() 66 if (event instanceof io.opencensus.trace.NetworkEvent) { in asNetworkEvent() 67 return (io.opencensus.trace.NetworkEvent) event; in asNetworkEvent() 70 io.opencensus.trace.NetworkEvent.Type type = in asNetworkEvent() 72 ? io.opencensus.trace.NetworkEvent.Type.RECV in asNetworkEvent() 73 : io.opencensus.trace.NetworkEvent.Type.SENT; in asNetworkEvent() 74 return io.opencensus.trace.NetworkEvent.builder(type, messageEvent.getMessageId()) in asNetworkEvent()
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/internal/ |
D | BaseMessageEventUtilsTest.java | 22 import io.opencensus.trace.NetworkEvent; 45 private static final NetworkEvent SENT_NETWORK_EVENT = 46 NetworkEvent.builder(NetworkEvent.Type.SENT, SENT_EVENT_ID) 50 private static final NetworkEvent RECV_NETWORK_EVENT = 51 NetworkEvent.builder(NetworkEvent.Type.RECV, RECV_EVENT_ID)
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/export/ |
D | SpanDataTest.java | 28 import io.opencensus.trace.NetworkEvent; 61 private static final NetworkEvent recvNetworkEvent = 62 NetworkEvent.builder(NetworkEvent.Type.RECV, 1).build(); 63 private static final NetworkEvent sentNetworkEvent = 64 NetworkEvent.builder(NetworkEvent.Type.SENT, 1).build(); 79 private final List<TimedEvent<NetworkEvent>> networkEventsList = 80 new ArrayList<SpanData.TimedEvent<NetworkEvent>>(); 87 private TimedEvents<NetworkEvent> networkEvents;
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
D | NetworkEvent.java | 37 public abstract class NetworkEvent extends io.opencensus.trace.BaseMessageEvent { class 194 public abstract NetworkEvent build(); in build() 199 NetworkEvent() {} in NetworkEvent() method in NetworkEvent
|
D | BlankSpan.java | 73 public void addNetworkEvent(NetworkEvent networkEvent) {} in addNetworkEvent()
|
D | Span.java | 173 public void addNetworkEvent(NetworkEvent networkEvent) { in addNetworkEvent()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/ |
D | SpanData.java | 241 public TimedEvents<io.opencensus.trace.NetworkEvent> getNetworkEvents() { in getNetworkEvents() 243 List<TimedEvent<io.opencensus.trace.NetworkEvent>> networkEventsList = in getNetworkEvents() 244 new ArrayList<TimedEvent<io.opencensus.trace.NetworkEvent>>(); in getNetworkEvents() 247 TimedEvent.<io.opencensus.trace.NetworkEvent>create( in getNetworkEvents() 251 return TimedEvents.<io.opencensus.trace.NetworkEvent>create( in getNetworkEvents()
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
D | NoRecordEventsSpanImplTest.java | 26 import io.opencensus.trace.NetworkEvent; 83 noRecordEventsSpan.addNetworkEvent(NetworkEvent.builder(NetworkEvent.Type.SENT, 1L).build()); in doNotCrash()
|
D | RecordEventsSpanImplTest.java | 30 import io.opencensus.trace.NetworkEvent; 107 NetworkEvent.builder(NetworkEvent.Type.RECV, 1).setUncompressedMessageSize(3).build()); in noEventsRecordedAfterEnd() 161 NetworkEvent networkEvent = in toSpanData_ActiveSpan() 162 NetworkEvent.builder(NetworkEvent.Type.RECV, 1).setUncompressedMessageSize(3).build(); in toSpanData_ActiveSpan() 220 NetworkEvent networkEvent = in toSpanData_EndedSpan() 221 NetworkEvent.builder(NetworkEvent.Type.RECV, 1).setUncompressedMessageSize(3).build(); in toSpanData_EndedSpan() 467 NetworkEvent networkEvent = in droppingNetworkEvents() 468 NetworkEvent.builder(NetworkEvent.Type.RECV, 1).setUncompressedMessageSize(3).build(); in droppingNetworkEvents()
|
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
D | TracezZPageHandler.java | 346 TimedEvents<io.opencensus.trace.NetworkEvent> networkEvents = span.getNetworkEvents(); in emitSingleSpan() 397 (io.opencensus.trace.NetworkEvent) castNonNull(event.getEvent())))); in emitSingleSpan() 601 private static String renderNetworkEvents(io.opencensus.trace.NetworkEvent networkEvent) { in renderNetworkEvents() 603 if (networkEvent.getType() == io.opencensus.trace.NetworkEvent.Type.RECV) { in renderNetworkEvents() 605 } else if (networkEvent.getType() == io.opencensus.trace.NetworkEvent.Type.SENT) { in renderNetworkEvents()
|
/external/opencensus-java/ |
D | CHANGELOG.md | 109 - Add MessageEvent and deprecate NetworkEvent.
|