-
Notifications
You must be signed in to change notification settings - Fork 10
/
SpanLifeAnalysis.java
46 lines (38 loc) · 1.39 KB
/
SpanLifeAnalysis.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
* Copyright (c) 2018 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License 2.0 which
* accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.tracecompass.incubator.internal.opentracing.core.analysis.spanlife;
import java.util.Objects;
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.tracecompass.tmf.core.statesystem.ITmfStateProvider;
import org.eclipse.tracecompass.tmf.core.statesystem.TmfStateSystemAnalysisModule;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
/**
* Spans life tracker
*
* @author Katherine Nadeau
*/
public class SpanLifeAnalysis extends TmfStateSystemAnalysisModule {
/**
* ID
*/
public static final String ID = "org.eclipse.tracecompass.incubator.opentracing.analysis.spanlife"; //$NON-NLS-1$
/**
* Constructor
*/
public SpanLifeAnalysis() {
setId(ID);
}
@Override
protected @NonNull ITmfStateProvider createStateProvider() {
ITmfTrace trace = getTrace();
return new SpanLifeStateProvider(Objects.requireNonNull(trace));
}
}