Skip to content

Commit

Permalink
(#72) update extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 26, 2024
1 parent 24cc478 commit 0fc264d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using Paralax.MessageBrokers.RabbitMQ;
using Paralax.Tracing.Jaeger.RabbitMQ.Plugins;

namespace Paralax.Tracing.Jaeger.RabbitMQ.
namespace Paralax.Tracing.Jaeger.RabbitMQ
{

public static class Extensions
{
public static IRabbitMqPluginsRegistry AddJaegerRabbitMqPlugin(this IRabbitMqPluginsRegistry registry)
public static class Extensions
{
registry.Add<JaegerPlugin>();
return registry;
public static IRabbitMqPluginsRegistry AddJaegerRabbitMqPlugin(this IRabbitMqPluginsRegistry registry)
{
registry.Add<JaegerPlugin>();
return registry;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System;
using System.Text;
using System.Threading.Tasks;
using OpenTelemetry.Trace;
using OpenTelemetry.Context.Propagation;
using Paralax.MessageBrokers.RabbitMQ;
using Paralax.MessageBrokers.RabbitMQ.Plugins;
using RabbitMQ.Client;
using RabbitMQ.Client.Events;
using Jaeger;
using OpenTracing;
using OpenTracing.Tag;
using Jaeger;
using RabbitMQ.Client.Events;

namespace Paralax.Tracing.Jaeger.RabbitMQ.Plugins
{
Expand Down Expand Up @@ -64,7 +61,7 @@ private IScope BuildScope(string messageName, string serializedSpanContext)
return spanBuilder.StartActive(true);
}

var spanContext = Jaeger.SpanContext.ContexFromString(serializedSpanContext);
var spanContext = SpanContext.ContextFromString(serializedSpanContext);

return spanBuilder
.AddReference(References.FollowsFrom, spanContext)
Expand Down

0 comments on commit 0fc264d

Please sign in to comment.