mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
851 lines
22 KiB
Smali
851 lines
22 KiB
Smali
.class public Lio/sentry/SpanContext;
|
|
.super Ljava/lang/Object;
|
|
.source "SpanContext.java"
|
|
|
|
# interfaces
|
|
.implements Lio/sentry/JsonUnknown;
|
|
.implements Lio/sentry/JsonSerializable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/sentry/SpanContext$JsonKeys;,
|
|
Lio/sentry/SpanContext$Deserializer;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final TYPE:Ljava/lang/String; = "trace"
|
|
|
|
|
|
# instance fields
|
|
.field protected description:Ljava/lang/String;
|
|
|
|
.field protected op:Ljava/lang/String;
|
|
|
|
.field protected origin:Ljava/lang/String;
|
|
|
|
.field private final parentSpanId:Lio/sentry/SpanId;
|
|
|
|
.field private transient samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
.field private final spanId:Lio/sentry/SpanId;
|
|
|
|
.field protected status:Lio/sentry/SpanStatus;
|
|
|
|
.field protected tags:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
.field private unknown:Ljava/util/Map;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lio/sentry/SpanContext;)V
|
|
.locals 1
|
|
|
|
.line 99
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 44
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
const-string v0, "manual"
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
.line 100
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
.line 101
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
.line 102
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
.line 103
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
.line 104
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
.line 105
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
.line 106
|
|
iget-object v0, p1, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
.line 107
|
|
iget-object p1, p1, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
invoke-static {p1}, Lio/sentry/util/CollectionUtils;->newConcurrentHashMap(Ljava/util/Map;)Ljava/util/Map;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Lio/sentry/SpanId;Ljava/lang/String;Ljava/lang/String;Lio/sentry/TracesSamplingDecision;Lio/sentry/SpanStatus;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 83
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 44
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
const-string v0, "manual"
|
|
|
|
iput-object v0, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
const-string v0, "traceId is required"
|
|
|
|
.line 84
|
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lio/sentry/protocol/SentryId;
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
const-string p1, "spanId is required"
|
|
|
|
.line 85
|
|
invoke-static {p2, p1}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lio/sentry/SpanId;
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
const-string p1, "operation is required"
|
|
|
|
.line 86
|
|
invoke-static {p4, p1}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
iput-object p3, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
iput-object p6, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
iput-object p5, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
iput-object p7, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
iput-object p8, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Ljava/lang/String;Lio/sentry/SpanId;Lio/sentry/TracesSamplingDecision;)V
|
|
.locals 9
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const-string v8, "manual"
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-object v2, p2
|
|
|
|
move-object v3, p4
|
|
|
|
move-object v4, p3
|
|
|
|
move-object v6, p5
|
|
|
|
.line 71
|
|
invoke-direct/range {v0 .. v8}, Lio/sentry/SpanContext;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Lio/sentry/SpanId;Ljava/lang/String;Ljava/lang/String;Lio/sentry/TracesSamplingDecision;Lio/sentry/SpanStatus;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;)V
|
|
.locals 6
|
|
|
|
.line 62
|
|
new-instance v1, Lio/sentry/protocol/SentryId;
|
|
|
|
invoke-direct {v1}, Lio/sentry/protocol/SentryId;-><init>()V
|
|
|
|
new-instance v2, Lio/sentry/SpanId;
|
|
|
|
invoke-direct {v2}, Lio/sentry/SpanId;-><init>()V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v3, p1
|
|
|
|
invoke-direct/range {v0 .. v5}, Lio/sentry/SpanContext;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Ljava/lang/String;Lio/sentry/SpanId;Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/String;Lio/sentry/TracesSamplingDecision;)V
|
|
.locals 6
|
|
|
|
.line 53
|
|
new-instance v1, Lio/sentry/protocol/SentryId;
|
|
|
|
invoke-direct {v1}, Lio/sentry/protocol/SentryId;-><init>()V
|
|
|
|
new-instance v2, Lio/sentry/SpanId;
|
|
|
|
invoke-direct {v2}, Lio/sentry/SpanId;-><init>()V
|
|
|
|
const/4 v4, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v3, p1
|
|
|
|
move-object v5, p2
|
|
|
|
invoke-direct/range {v0 .. v5}, Lio/sentry/SpanContext;-><init>(Lio/sentry/protocol/SentryId;Lio/sentry/SpanId;Ljava/lang/String;Lio/sentry/SpanId;Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p0, p1, :cond_0
|
|
|
|
return v0
|
|
|
|
.line 219
|
|
:cond_0
|
|
instance-of v1, p1, Lio/sentry/SpanContext;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 220
|
|
:cond_1
|
|
check-cast p1, Lio/sentry/SpanContext;
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
.line 221
|
|
iget-object v3, p1, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
invoke-virtual {v1, v3}, Lio/sentry/protocol/SentryId;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
iget-object v3, p1, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
.line 222
|
|
invoke-virtual {v1, v3}, Lio/sentry/SpanId;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
iget-object v3, p1, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
.line 223
|
|
invoke-static {v1, v3}, Lio/sentry/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
.line 224
|
|
invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
.line 225
|
|
invoke-static {v1, v3}, Lio/sentry/util/Objects;->equals(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
iget-object p1, p1, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
if-ne p0, p1, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
move v0, v2
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public getDescription()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getOperation()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getOrigin()Ljava/lang/String;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getParentSpanId()Lio/sentry/SpanId;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getProfileSampled()Ljava/lang/Boolean;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 180
|
|
:cond_0
|
|
invoke-virtual {p0}, Lio/sentry/TracesSamplingDecision;->getProfileSampled()Ljava/lang/Boolean;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getSampled()Ljava/lang/Boolean;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
.line 172
|
|
:cond_0
|
|
invoke-virtual {p0}, Lio/sentry/TracesSamplingDecision;->getSampled()Ljava/lang/Boolean;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getSamplingDecision()Lio/sentry/TracesSamplingDecision;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getSpanId()Lio/sentry/SpanId;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getStatus()Lio/sentry/SpanStatus;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getTags()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getTraceId()Lio/sentry/protocol/SentryId;
|
|
.locals 0
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public getUnknown()Ljava/util/Map;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->unknown:Ljava/util/Map;
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 6
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
iget-object v2, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
iget-object v3, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
iget-object v5, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
.line 231
|
|
filled-new-array/range {v0 .. v5}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0}, Lio/sentry/util/Objects;->hash([Ljava/lang/Object;)I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 250
|
|
invoke-interface {p1}, Lio/sentry/ObjectWriter;->beginObject()Lio/sentry/ObjectWriter;
|
|
|
|
const-string v0, "trace_id"
|
|
|
|
.line 251
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->traceId:Lio/sentry/protocol/SentryId;
|
|
|
|
.line 252
|
|
invoke-virtual {v0, p1, p2}, Lio/sentry/protocol/SentryId;->serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
|
|
|
|
const-string v0, "span_id"
|
|
|
|
.line 253
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->spanId:Lio/sentry/SpanId;
|
|
|
|
.line 254
|
|
invoke-virtual {v0, p1, p2}, Lio/sentry/SpanId;->serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string v0, "parent_span_id"
|
|
|
|
.line 256
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->parentSpanId:Lio/sentry/SpanId;
|
|
|
|
.line 257
|
|
invoke-virtual {v0, p1, p2}, Lio/sentry/SpanId;->serialize(Lio/sentry/ObjectWriter;Lio/sentry/ILogger;)V
|
|
|
|
:cond_0
|
|
const-string v0, "op"
|
|
|
|
.line 259
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
invoke-interface {v0, v1}, Lio/sentry/ObjectWriter;->value(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string v0, "description"
|
|
|
|
.line 261
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
invoke-interface {v0, v1}, Lio/sentry/ObjectWriter;->value(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v0, "status"
|
|
|
|
.line 264
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
const-string v0, "origin"
|
|
|
|
.line 267
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
.line 269
|
|
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
const-string v0, "tags"
|
|
|
|
.line 270
|
|
invoke-interface {p1, v0}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
invoke-interface {v0, p2, v1}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Lio/sentry/SpanContext;->unknown:Ljava/util/Map;
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 273
|
|
invoke-interface {v0}, Ljava/util/Map;->keySet()Ljava/util/Set;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lio/sentry/SpanContext;->unknown:Ljava/util/Map;
|
|
|
|
.line 274
|
|
invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
.line 275
|
|
invoke-interface {p1, v1}, Lio/sentry/ObjectWriter;->name(Ljava/lang/String;)Lio/sentry/ObjectWriter;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1, p2, v2}, Lio/sentry/ObjectWriter;->value(Lio/sentry/ILogger;Ljava/lang/Object;)Lio/sentry/ObjectWriter;
|
|
|
|
goto :goto_0
|
|
|
|
.line 278
|
|
:cond_5
|
|
invoke-interface {p1}, Lio/sentry/ObjectWriter;->endObject()Lio/sentry/ObjectWriter;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setDescription(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->description:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOperation(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "operation is required"
|
|
|
|
.line 114
|
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->op:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setOrigin(Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->origin:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSampled(Ljava/lang/Boolean;)V
|
|
.locals 1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 186
|
|
invoke-virtual {p0, p1}, Lio/sentry/SpanContext;->setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 188
|
|
:cond_0
|
|
new-instance v0, Lio/sentry/TracesSamplingDecision;
|
|
|
|
invoke-direct {v0, p1}, Lio/sentry/TracesSamplingDecision;-><init>(Ljava/lang/Boolean;)V
|
|
|
|
invoke-virtual {p0, v0}, Lio/sentry/SpanContext;->setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSampled(Ljava/lang/Boolean;Ljava/lang/Boolean;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 195
|
|
invoke-virtual {p0, v0}, Lio/sentry/SpanContext;->setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
if-nez p2, :cond_1
|
|
|
|
.line 197
|
|
new-instance p2, Lio/sentry/TracesSamplingDecision;
|
|
|
|
invoke-direct {p2, p1}, Lio/sentry/TracesSamplingDecision;-><init>(Ljava/lang/Boolean;)V
|
|
|
|
invoke-virtual {p0, p2}, Lio/sentry/SpanContext;->setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 199
|
|
:cond_1
|
|
new-instance v1, Lio/sentry/TracesSamplingDecision;
|
|
|
|
invoke-direct {v1, p1, v0, p2, v0}, Lio/sentry/TracesSamplingDecision;-><init>(Ljava/lang/Boolean;Ljava/lang/Double;Ljava/lang/Boolean;Ljava/lang/Double;)V
|
|
|
|
invoke-virtual {p0, v1}, Lio/sentry/SpanContext;->setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSamplingDecision(Lio/sentry/TracesSamplingDecision;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->samplingDecision:Lio/sentry/TracesSamplingDecision;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setStatus(Lio/sentry/SpanStatus;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->status:Lio/sentry/SpanStatus;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTag(Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
const-string v0, "name is required"
|
|
|
|
.line 118
|
|
invoke-static {p1, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v0, "value is required"
|
|
|
|
.line 119
|
|
invoke-static {p2, v0}, Lio/sentry/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
iget-object p0, p0, Lio/sentry/SpanContext;->tags:Ljava/util/Map;
|
|
|
|
.line 120
|
|
invoke-interface {p0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setUnknown(Ljava/util/Map;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iput-object p1, p0, Lio/sentry/SpanContext;->unknown:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|