-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #839 from bugsnag/next
Release v8.2.0
- Loading branch information
Showing
10 changed files
with
187 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using UnityEngine.Events; | ||
#nullable enable | ||
|
||
namespace BugsnagUnity.Payload | ||
{ | ||
public class Correlation : PayloadContainer | ||
{ | ||
|
||
private const string TRACE_ID_KEY = "traceId"; | ||
private const string SPAN_ID_KEY = "spanId"; | ||
|
||
internal Correlation(string traceId, string spanId) | ||
{ | ||
TraceId = traceId; | ||
SpanId = spanId; | ||
} | ||
|
||
public string TraceId | ||
{ | ||
get { | ||
var @object = Get(TRACE_ID_KEY); | ||
if (@object == null) | ||
{ | ||
return string.Empty; | ||
} | ||
return (string)@object; | ||
} | ||
set | ||
{ | ||
Add(TRACE_ID_KEY, value); | ||
} | ||
} | ||
|
||
public string SpanId | ||
{ | ||
get | ||
{ | ||
var @object = Get(SPAN_ID_KEY); | ||
if (@object == null) | ||
{ | ||
return string.Empty; | ||
} | ||
return (string)@object; | ||
} | ||
set | ||
{ | ||
Add(SPAN_ID_KEY, value); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.