forked from getsentry/sentry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITransaction.java
More file actions
60 lines (51 loc) · 1.11 KB
/
ITransaction.java
File metadata and controls
60 lines (51 loc) · 1.11 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package io.sentry;
import io.sentry.protocol.SentryId;
import java.util.List;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.TestOnly;
public interface ITransaction extends ISpan {
/**
* Sets transaction name.
*
* @param name - transaction name
*/
void setName(@NotNull String name);
/**
* Returns transaction name.
*
* @return transaction name
*/
@NotNull
String getName();
@NotNull
@TestOnly
List<Span> getSpans();
/**
* Returns if transaction is sampled.
*
* @return is sampled
*/
@Nullable
Boolean isSampled();
/**
* Returns the latest span that is not finished.
*
* @return span or null if not found.
*/
@Nullable
Span getLatestActiveSpan();
/**
* Returns transaction's event id.
*
* @return the event id
*/
@NotNull
SentryId getEventId();
/**
* Schedules when transaction should be automatically finished.
*
* @param idleTimeout - the time to wait before finishing the transaction
*/
void scheduleFinish(final @NotNull Long idleTimeout);
}