Skip to content

Commit fc79644

Browse files
committed
rep: requires protocol 1.0.3
1 parent a9495f4 commit fc79644

File tree

11 files changed

+11
-65
lines changed

11 files changed

+11
-65
lines changed

src/Sentry/Extensibility/DisabledHub.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Threading.Tasks;
3+
using Sentry.Protocol;
34

45
namespace Sentry.Extensibility
56
{

src/Sentry/IHub.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Sentry.Protocol;
2+
13
namespace Sentry
24
{
35
/// <summary>

src/Sentry/ISentryClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using Sentry.Protocol;
2+
13
namespace Sentry
24
{
35
/// <summary>

src/Sentry/Internal/Http/HttpTransport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public async Task CaptureEventAsync(SentryEvent @event, CancellationToken cancel
5050
#if DEBUG
5151
var body = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
5252
var responseId = JsonSerializer.DeserializeObject<SentrySuccessfulResponseBody>(body)?.id;
53-
Debug.Assert(@event.EventId.ToString("N") == responseId);
53+
Debug.Assert(@event.EventId.ToString() == responseId);
5454
#endif
5555
return;
5656
}

src/Sentry/Internal/Hub.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Threading.Tasks;
55
using Sentry.Extensibility;
66
using Sentry.Integrations;
7+
using Sentry.Protocol;
78

89
namespace Sentry.Internal
910
{

src/Sentry/Internal/OptionalHub.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Threading.Tasks;
33
using Sentry.Extensibility;
4+
using Sentry.Protocol;
45

56
namespace Sentry.Internal
67
{

src/Sentry/Sentry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</ItemGroup>
1818
<ItemGroup>
1919
<PackageReference Include="Sentry.PlatformAbstractions" Version="1.0.0" />
20-
<PackageReference Include="Sentry.Protocol" Version="1.0.2" />
20+
<PackageReference Include="Sentry.Protocol" Version="1.0.3" />
2121
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" />
2222
</ItemGroup>
2323

src/Sentry/SentryClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private SentryId DoSendEvent(SentryEvent @event, Scope scope)
148148
if (Worker.EnqueueEvent(@event))
149149
{
150150
_options.DiagnosticLogger?.LogDebug("Event queued up.");
151-
return (SentryId)@event.EventId;
151+
return @event.EventId;
152152
}
153153

154154
_options.DiagnosticLogger?.LogWarning("The attempt to queue the event failed. Items in queue: {0}",

src/Sentry/SentryId.cs

Lines changed: 0 additions & 45 deletions
This file was deleted.

test/Sentry.Tests/Internals/Http/HttpTransportTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public async Task CreateRequest_Content_IncludesEvent()
162162
var evt = new SentryEvent();
163163
var actual = sut.CreateRequest(evt);
164164

165-
Assert.Contains(evt.EventId.ToString("N"), await actual.Content.ReadAsStringAsync());
165+
Assert.Contains(evt.EventId.ToString(), await actual.Content.ReadAsStringAsync());
166166
}
167167
}
168168
}

0 commit comments

Comments
 (0)