This repository has been archived by the owner on Apr 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit UDPs max span bytes when using Thrift (#210)
* Fix typos * Limit maxPacketSize for UdpSender Signed-off-by: Kraemer, Benjamin <[email protected]>
- Loading branch information
1 parent
4d29d27
commit 40b078c
Showing
3 changed files
with
32 additions
and
4 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
23 changes: 23 additions & 0 deletions
23
test/Senders/Jaeger.Senders.Thrift.Tests/UdpSenderTests.cs
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,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Net.Sockets; | ||
using System.Reflection; | ||
using Jaeger.Reporters; | ||
using Microsoft.Extensions.Configuration; | ||
using Microsoft.Extensions.Logging; | ||
using Microsoft.Extensions.Logging.Abstractions; | ||
using OpenTracing.Noop; | ||
using OpenTracing.Util; | ||
using Xunit; | ||
|
||
namespace Jaeger.Senders.Thrift.Tests | ||
{ | ||
public class UdpSenderTests | ||
{ | ||
[Fact] | ||
public void TestSenderWithAgentDataFromEnv() | ||
{ | ||
Assert.Throws<NotSupportedException>(() => new UdpSender("jaeger-agent", 6832, 65535)); | ||
} | ||
} | ||
} |