Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Sentry/SentrySpan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public void SetData(string key, object? value) =>
(_data ??= new Dictionary<string, object?>())[key] = value;

/// <inheritdoc />
[Obsolete("Use SetData")]
[Obsolete("Use Data")]
public IReadOnlyDictionary<string, object?> Extra => Data;

/// <inheritdoc />
[Obsolete("Use Data")]
[Obsolete("Use SetData")]
public void SetExtra(string key, object? value) => SetData(key, value);

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ namespace Sentry
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Data { get; }
public string? Description { get; set; }
public System.DateTimeOffset? EndTimestamp { get; }
[System.Obsolete("Use SetData")]
[System.Obsolete("Use Data")]
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Extra { get; }
public bool IsFinished { get; }
public bool? IsSampled { get; }
Expand All @@ -915,7 +915,7 @@ namespace Sentry
public Sentry.SentryId TraceId { get; }
public Sentry.SentryTraceHeader GetTraceHeader() { }
public void SetData(string key, object? value) { }
[System.Obsolete("Use Data")]
[System.Obsolete("Use SetData")]
public void SetExtra(string key, object? value) { }
public void SetMeasurement(string name, Sentry.Protocol.Measurement measurement) { }
public void SetTag(string key, string value) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ namespace Sentry
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Data { get; }
public string? Description { get; set; }
public System.DateTimeOffset? EndTimestamp { get; }
[System.Obsolete("Use SetData")]
[System.Obsolete("Use Data")]
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Extra { get; }
public bool IsFinished { get; }
public bool? IsSampled { get; }
Expand All @@ -915,7 +915,7 @@ namespace Sentry
public Sentry.SentryId TraceId { get; }
public Sentry.SentryTraceHeader GetTraceHeader() { }
public void SetData(string key, object? value) { }
[System.Obsolete("Use Data")]
[System.Obsolete("Use SetData")]
public void SetExtra(string key, object? value) { }
public void SetMeasurement(string name, Sentry.Protocol.Measurement measurement) { }
public void SetTag(string key, string value) { }
Expand Down
4 changes: 2 additions & 2 deletions test/Sentry.Tests/ApiApprovalTests.Run.Net4_8.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ namespace Sentry
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Data { get; }
public string? Description { get; set; }
public System.DateTimeOffset? EndTimestamp { get; }
[System.Obsolete("Use SetData")]
[System.Obsolete("Use Data")]
public System.Collections.Generic.IReadOnlyDictionary<string, object?> Extra { get; }
public bool IsFinished { get; }
public bool? IsSampled { get; }
Expand All @@ -896,7 +896,7 @@ namespace Sentry
public Sentry.SentryId TraceId { get; }
public Sentry.SentryTraceHeader GetTraceHeader() { }
public void SetData(string key, object? value) { }
[System.Obsolete("Use Data")]
[System.Obsolete("Use SetData")]
public void SetExtra(string key, object? value) { }
public void SetMeasurement(string name, Sentry.Protocol.Measurement measurement) { }
public void SetTag(string key, string value) { }
Expand Down
Loading