Search in sources :

Example 1 with Segment

use of org.apache.skywalking.apm.collector.storage.table.segment.Segment in project incubator-skywalking by apache.

the class SegmentParse method buildSegment.

@GraphComputingMetric(name = "/segment/parse/buildSegment")
private void buildSegment(String id, byte[] dataBinary) {
    Segment segment = new Segment();
    segment.setId(id);
    segment.setDataBinary(dataBinary);
    segment.setTimeBucket(timeBucket);
    Graph<Segment> graph = GraphManager.INSTANCE.findGraph(GraphIdDefine.SEGMENT_PERSISTENCE_GRAPH_ID, Segment.class);
    graph.start(segment);
}
Also used : Segment(org.apache.skywalking.apm.collector.storage.table.segment.Segment) UpstreamSegment(org.apache.skywalking.apm.network.proto.UpstreamSegment) GraphComputingMetric(org.apache.skywalking.apm.collector.core.annotations.trace.GraphComputingMetric)

Aggregations

GraphComputingMetric (org.apache.skywalking.apm.collector.core.annotations.trace.GraphComputingMetric)1 Segment (org.apache.skywalking.apm.collector.storage.table.segment.Segment)1 UpstreamSegment (org.apache.skywalking.apm.network.proto.UpstreamSegment)1