Пример #1
0
 internal static IInternalSpan WithDefaultAttributes(this IInternalSpan span)
 {
     span.WithTag(CouchbaseTags.OpenTracingTags.Component, ClientIdentifier.GetClientDescription());
     span.WithTag(CouchbaseTags.OpenTracingTags.DbType, CouchbaseTags.DbTypeCouchbase);
     span.WithTag(CouchbaseTags.OpenTracingTags.SpanKind, CouchbaseTags.OpenTracingTags.SpanKindClient);
     return(span);
 }
 internal static IInternalSpan WithLocalAddress(this IInternalSpan span) =>
 !span.IsNullSpan
         ? span.WithTag(CouchbaseTags.LocalAddress, _dnsHostName ??= Dns.GetHostName())
         : span;
 internal static IInternalSpan WithRemoteAddress(this IInternalSpan span, Uri remoteUri) =>
 !span.IsNullSpan
         ? span.WithTag(CouchbaseTags.RemoteAddress, $"{remoteUri.Host}:{remoteUri.Port}")
         : span;
 internal static IInternalSpan OperationId(this IInternalSpan span, string operationId) =>
 span.WithTag(CouchbaseTags.OperationId, operationId);
Пример #5
0
 internal static IInternalSpan WithLocalAddress(this IInternalSpan span) =>
 span.WithTag(CouchbaseTags.LocalAddress, Dns.GetHostName());
 public void AddTags(IInternalSpan span)
 {
     span.WithTag(CouchbaseTags.RemoteAddress, _endPointString);
     span.WithTag(CouchbaseTags.LocalAddress, _localEndPointString);
     span.WithTag(CouchbaseTags.LocalId, _connectionIdString);
 }