ref: Move using outside namespace (#277)

This commit is contained in:
Bruno Garcia 2019-10-12 13:03:45 -04:00 committed by Liudmila Molkova
parent 7141ee23d8
commit d48e702286
293 changed files with 1084 additions and 1373 deletions

View File

@ -67,7 +67,7 @@
<Rule Id="SA1132" Action="None" />
<Rule Id="SA1133" Action="Warning" />
<Rule Id="SA1134" Action="None" />
<Rule Id="SA1200" Action="Warning" />
<Rule Id="SA1200" Action="None" />
<Rule Id="SA1201" Action="Warning" />
<Rule Id="SA1202" Action="Warning" />
<Rule Id="SA1203" Action="Warning" />

View File

@ -67,7 +67,7 @@
<Rule Id="SA1132" Action="Error" />
<Rule Id="SA1133" Action="Error" />
<Rule Id="SA1134" Action="Error" />
<Rule Id="SA1200" Action="Error" />
<Rule Id="SA1200" Action="None" />
<Rule Id="SA1201" Action="Error" />
<Rule Id="SA1202" Action="Error" />
<Rule Id="SA1203" Action="Error" />

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using CommandLine;
namespace Samples
{
using System;
using CommandLine;
/// <summary>
/// Main samples entry point.
/// </summary>

View File

@ -13,21 +13,20 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Exporter.ApplicationInsights;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Exporter.ApplicationInsights;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
internal class TestApplicationInsights
{
private static readonly ITagger Tagger = Tags.Tagger;

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Net.Http;
using OpenTelemetry.Collector.Dependencies;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
namespace Samples
{
using System;
using System.Net.Http;
using OpenTelemetry.Collector.Dependencies;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
internal class TestHttpClient
{
internal static object Run()

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Jaeger;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Jaeger;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
internal class TestJaeger
{
internal static object Run(string host, int port)

View File

@ -13,19 +13,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Exporter.Prometheus;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Exporter.Prometheus;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
internal class TestPrometheus
{
private static readonly ITagger Tagger = Tags.Tagger;

View File

@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Collector.StackExchangeRedis;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
using StackExchange.Redis;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Collector.StackExchangeRedis;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
using StackExchange.Redis;
internal class TestRedis
{
internal static object Run(string zipkinUri)

View File

@ -13,20 +13,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Stackdriver;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Stackdriver;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
using OpenTelemetry.Stats.Measures;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
internal class TestStackdriver
{
private static readonly ITagger Tagger = Tags.Tagger;

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
namespace Samples
{
using System;
using System.Collections.Generic;
using System.Threading;
using OpenTelemetry.Exporter.Zipkin;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Configuration;
internal class TestZipkin
{
internal static object Run(string zipkinUri)

View File

@ -1,16 +1,15 @@
// <copyright file="LoggingTracerExtensions.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry.Collector.AspNetCore;
using OpenTelemetry.Collector.Dependencies;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Sampler;
namespace LoggingTracer.Demo.AspNetCore
{
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using OpenTelemetry.Collector.AspNetCore;
using OpenTelemetry.Collector.Dependencies;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Sampler;
internal static class LoggingTracerExtensions
{
internal static void AddLoggingTracer(this IServiceCollection services)

View File

@ -1,12 +1,11 @@
// <copyright file="Program.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace LoggingTracer.Demo.AspNetCore
{
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
public class Program
{
public static void Main(string[] args)

View File

@ -1,14 +1,13 @@
// <copyright file="Startup.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
namespace LoggingTracer.Demo.AspNetCore
{
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
public class Startup
{
public void ConfigureServices(IServiceCollection services)

View File

@ -1,12 +1,11 @@
// <copyright file="Program.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Threading.Tasks;
using OpenTelemetry.Trace;
namespace LoggingTracer.Demo.ConsoleApp
{
using System.Threading.Tasks;
using OpenTelemetry.Trace;
public class Program
{
public static async Task Main(string[] args)

View File

@ -1,13 +1,12 @@
// <copyright file="CurrentSpanUtils.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Threading;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System;
using System.Threading;
using OpenTelemetry.Trace;
/// <summary>
/// Span utils for Logging-only SDK implementation.
/// </summary>

View File

@ -1,12 +1,11 @@
// <copyright file="Logger.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Threading;
namespace LoggingTracer
{
using System;
using System.Threading;
public static class Logger
{
private static DateTime startTime = DateTime.UtcNow;

View File

@ -1,14 +1,13 @@
// <copyright file="LoggingBinaryFormat.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
public sealed class LoggingBinaryFormat : IBinaryFormat
{
public ISet<string> Fields => null;

View File

@ -1,13 +1,12 @@
// <copyright file="LoggingSpan.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
public class LoggingSpan : ISpan
{
public LoggingSpan(string name, SpanKind kind)

View File

@ -1,14 +1,13 @@
// <copyright file="LoggingTextFormat.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
public sealed class LoggingTextFormat : ITextFormat
{
public ISet<string> Fields => null;

View File

@ -1,15 +1,14 @@
// <copyright file="LoggingTracer.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Context.Propagation;
using OpenTelemetry.Trace;
public class LoggingTracer : ITracer
{
private string prefix;

View File

@ -1,12 +1,11 @@
// <copyright file="LoggingTracerFactory.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry.Trace;
namespace LoggingTracer
{
using System.Collections.Generic;
using OpenTelemetry.Trace;
public class LoggingTracerFactory : TracerFactoryBase
{
public override ITracer GetTracer(string name, string version = null)

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Context.Propagation
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Trace;
public class BinaryFormat : IBinaryFormat
{
private const byte VersionId = 0;

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using OpenTelemetry.Trace;
namespace OpenTelemetry.Context.Propagation
{
using OpenTelemetry.Trace;
/// <summary>
/// Binary format propagator.
/// </summary>

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Context.Propagation
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
/// <summary>
/// Text format wire context propagator. Helps to extract and inject context from textual
/// representation (typically http headers or metadata colleciton).

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Context.Propagation
{
using System;
public class SpanContextParseException : Exception
{
public SpanContextParseException(string message)

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Abstractions.Context.Propagation;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Context.Propagation
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Abstractions.Context.Propagation;
using OpenTelemetry.Trace;
/// <summary>
/// W3C trace context text wire protocol formatter. See https://github.com/w3c/distributed-tracing/.
/// </summary>

View File

@ -14,18 +14,18 @@
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
#if ABSTRACTIONS
namespace OpenTelemetry.Abstractions.Context.Propagation
#else
namespace OpenTelemetry.Context.Propagation
#endif
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
/// <summary>
/// Extension methods to extract Tracestate from string.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
/// <summary>
/// Blank span.
/// </summary>

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Metrics.Implementation;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Metrics
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Metrics.Implementation;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
/// <summary>
/// No-op implementation of a meter interface.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using OpenTelemetry.Metrics.Implementation;
namespace OpenTelemetry.Metrics
{
using OpenTelemetry.Metrics.Implementation;
/// <summary>
/// Counter metric, to report instantaneous measurement of a double value. Cumulative values can go
/// up or stay the same, but can never go down.Cumulative values cannot be negative.

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using OpenTelemetry.Metrics.Implementation;
namespace OpenTelemetry.Metrics
{
using OpenTelemetry.Metrics.Implementation;
/// <summary>
/// Counter metric, to report instantaneous measurement of a double value. Cumulative values can go
/// up or stay the same, but can never go down.Cumulative values cannot be negative.

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using OpenTelemetry.Metrics.Implementation;
namespace OpenTelemetry.Metrics
{
using OpenTelemetry.Metrics.Implementation;
/// <summary>
/// Gauge metric, to report instantaneous measurement of a double value. Cumulative values can go
/// up or down.

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using OpenTelemetry.Metrics.Implementation;
namespace OpenTelemetry.Metrics
{
using OpenTelemetry.Metrics.Implementation;
/// <summary>
/// Gauge metric, to report instantaneous measurement of a double value. Cumulative values can go
/// up or stay the same, but can never go down.Cumulative values cannot be negative.

View File

@ -13,14 +13,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry.Metrics.Implementation;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Metrics
{
using System.Collections.Generic;
using OpenTelemetry.Metrics.Implementation;
using OpenTelemetry.Tags;
using OpenTelemetry.Trace;
/// <summary>
/// Returns a builder for <see cref="ICounterDouble"/>.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
namespace OpenTelemetry.Metrics
{
using System;
using System.Collections.Generic;
/// <summary>
/// Base interface for all metrics defined in this package.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
namespace OpenTelemetry.Metrics.Implementation
{
using System.Collections.Generic;
/// <summary>
/// Metric builder interface.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
namespace OpenTelemetry.Tags
{
using System.Collections.Generic;
/// <summary>
/// Collection of tags representing the tags context.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Tags
{
using System;
/// <summary>
/// Tags context builder.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Tags
{
using System;
/// <summary>
/// Tags API configuraiton.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Tags
{
using System;
/// <summary>
/// Tag with the key and value.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Utils;
namespace OpenTelemetry.Tags
{
using System;
using OpenTelemetry.Utils;
/// <summary>
/// Tag key.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Utils;
namespace OpenTelemetry.Tags
{
using System;
using OpenTelemetry.Utils;
/// <summary>
/// Tag key.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
namespace OpenTelemetry.Tags
{
using System.Collections.Generic;
/// <summary>
/// Collection of tags.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Linq;
namespace OpenTelemetry.Trace
{
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Sampling decision.
/// </summary>

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using OpenTelemetry.Abstractions.Utils;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using OpenTelemetry.Abstractions.Utils;
/// <summary>
/// A text annotation associated with a collection of attributes.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenTelemetry.Trace
{
using System.Collections.Generic;
using System.Diagnostics;
/// <summary>
/// Sampler to reduce data volume. This sampler executes before Span object was created.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
/// <summary>
/// <para>Span represents the execution of the certain span of code or span of time between two events which is part of
/// a distributed trace and has result of execution, context of execution and other properties.</para>

View File

@ -13,14 +13,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Context.Propagation;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Context.Propagation;
/// <summary>
/// Tracer to record distributed tracing information.
/// </summary>

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Link associated with the span.
/// </summary>

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using OpenTelemetry.Context.Propagation;
namespace OpenTelemetry.Trace
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using OpenTelemetry.Context.Propagation;
/// <summary>
/// No-op tracer.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenTelemetry.Trace.Sampler.Internal
{
using System.Collections.Generic;
using System.Diagnostics;
internal sealed class AlwaysSampleSampler : ISampler
{
internal AlwaysSampleSampler()

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
namespace OpenTelemetry.Trace.Sampler.Internal
{
using System.Collections.Generic;
using System.Diagnostics;
/// <inheritdoc />
internal sealed class NeverSampleSampler : ISampler
{

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace OpenTelemetry.Trace
{
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
/// <summary>
/// A class that represents a span context. A span context contains the state that must propagate to
/// child <see cref="ISpan"/> and across process boundaries. It contains the identifiers <see cref="ActivityTraceId"/>

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using OpenTelemetry.Abstractions.Utils;
namespace OpenTelemetry.Trace
{
using System;
using System.Diagnostics;
using OpenTelemetry.Abstractions.Utils;
public static class TracerExtensions
{
/// <summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Trace
{
using System;
/// <summary>
/// Creates Tracers for an instrumentation library.
/// </summary>

View File

@ -14,19 +14,19 @@
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
#if NET45 || NET46
using System.Diagnostics.CodeAnalysis;
using System.Threading;
#endif
#if ABSTRACTIONS
namespace OpenTelemetry.Abstractions.Utils
#else
namespace OpenTelemetry.Utils
#endif
{
using System;
using System.Diagnostics;
#if NET45 || NET46
using System.Diagnostics.CodeAnalysis;
using System.Threading;
#endif
internal class PreciseTimestamp
{
/// <summary>

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Collector.AspNetCore.Implementation;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.AspNetCore
{
using System;
using OpenTelemetry.Collector.AspNetCore.Implementation;
using OpenTelemetry.Trace;
/// <summary>
/// Requests collector.
/// </summary>

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Collector.AspNetCore
{
using System;
/// <summary>
/// Options for requests collector.
/// </summary>

View File

@ -13,17 +13,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.AspNetCore.Implementation
{
using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Features;
using OpenTelemetry.Trace;
internal class HttpInListener : ListenerHandler
{
private static readonly string UnknownHostName = "UNKNOWN-HOST";

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Linq;
using System.Reflection;
namespace OpenTelemetry.Collector.AspNetCore.Implementation
{
using System;
using System.Linq;
using System.Reflection;
internal class PropertyFetcher
{
private readonly string propertyName;

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Trace.Configuration;
namespace OpenTelemetry.Collector.AspNetCore
{
using System;
using OpenTelemetry.Trace.Configuration;
public static class TracerBuilderExtensions
{
public static TracerBuilder AddRequestCollector(this TracerBuilder builder)

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using OpenTelemetry.Trace;
/// <summary>
/// Dependencies collector.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using OpenTelemetry.Trace;
/// <summary>
/// Dependencies collector.
/// </summary>

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using System.Collections.Generic;
using OpenTelemetry.Trace;
public class DependenciesCollector : IDisposable
{
private readonly List<IDisposable> collectors = new List<IDisposable>();

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Collector.Dependencies.Implementation;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using OpenTelemetry.Collector.Dependencies.Implementation;
using OpenTelemetry.Trace;
/// <summary>
/// Dependencies collector.
/// </summary>

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Net.Http;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using System.Net.Http;
/// <summary>
/// Options for dependencies collector.
/// </summary>

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using OpenTelemetry.Collector.Dependencies.Implementation;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using OpenTelemetry.Collector.Dependencies.Implementation;
using OpenTelemetry.Trace;
internal class AzureSdkDiagnosticListener : ListenerHandler
{
private static readonly PropertyFetcher LinksPropertyFetcher = new PropertyFetcher("Links");

View File

@ -13,19 +13,18 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Runtime.Versioning;
using System.Threading.Tasks;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Collector.Dependencies.Implementation
{
using System;
using System.Diagnostics;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Runtime.Versioning;
using System.Threading.Tasks;
using OpenTelemetry.Trace;
internal class HttpHandlerDiagnosticListener : ListenerHandler
{
private readonly PropertyFetcher startRequestFetcher = new PropertyFetcher("Request");

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Linq;
using System.Reflection;
namespace OpenTelemetry.Collector.Dependencies.Implementation
{
using System;
using System.Linq;
using System.Reflection;
internal class PropertyFetcher
{
private readonly string propertyName;

View File

@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using OpenTelemetry.Trace.Configuration;
namespace OpenTelemetry.Collector.Dependencies
{
using System;
using OpenTelemetry.Trace.Configuration;
public static class TracerBuilderExtensions
{
public static TracerBuilder AddDependencyCollector(this TracerBuilder builder)

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using OpenTelemetry.Trace;
using StackExchange.Redis.Profiling;
namespace OpenTelemetry.Collector.StackExchangeRedis.Implementation
{
using System.Collections.Generic;
using OpenTelemetry.Trace;
using StackExchange.Redis.Profiling;
internal static class RedisProfilerEntryToSpanConverter
{
public static ISpan ProfilerCommandToSpan(ITracer tracer, ISpan parentSpan, IProfiledCommand command)

View File

@ -13,17 +13,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Collector.StackExchangeRedis.Implementation;
using OpenTelemetry.Trace;
using StackExchange.Redis.Profiling;
namespace OpenTelemetry.Collector.StackExchangeRedis
{
using System;
using System.Collections.Concurrent;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Collector.StackExchangeRedis.Implementation;
using OpenTelemetry.Trace;
using StackExchange.Redis.Profiling;
/// <summary>
/// Redis calls collector.
/// </summary>

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Exporter.ApplicationInsights.Implementation;
using OpenTelemetry.Stats;
namespace OpenTelemetry.Exporter.ApplicationInsights
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Exporter.ApplicationInsights.Implementation;
using OpenTelemetry.Stats;
/// <summary>
/// Exporter of OpenTelemetry spans and metrics to Azure Application Insights.
/// </summary>

View File

@ -13,24 +13,23 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Export;
namespace OpenTelemetry.Exporter.ApplicationInsights
{
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.ApplicationInsights.Extensibility.Implementation;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Export;
public class ApplicationInsightsTraceExporter : SpanExporter, IDisposable
{
private readonly TelemetryClient telemetryClient;

View File

@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
using System.Threading;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
namespace OpenTelemetry.Exporter.ApplicationInsights.Implementation
{
using System;
using System.Diagnostics;
using System.Threading;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.DataContracts;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Stats;
using OpenTelemetry.Stats.Aggregations;
internal class MetricsExporterThread
{
private readonly IViewManager viewManager;

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Trace.Configuration;
namespace OpenTelemetry.Exporter.ApplicationInsights
{
using System;
using Microsoft.ApplicationInsights.Extensibility;
using OpenTelemetry.Trace.Configuration;
public static class TracerBuilderExtensions
{
public static TracerBuilder UseApplicationInsights(this TracerBuilder builder, Action<TelemetryConfiguration> configure)

View File

@ -1,4 +1,4 @@
// <copyright file="Batch.cs" company="OpenTelemetry Authors">
// <copyright file="Batch.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,20 +13,19 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
using Thrift.Protocols.Utilities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
using Thrift.Protocols.Utilities;
public class Batch : TAbstractBase
{
public Batch()

View File

@ -1,4 +1,4 @@
// <copyright file="EmitBatchArgs.cs" company="OpenTelemetry Authors">
// <copyright file="EmitBatchArgs.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class EmitBatchArgs : TAbstractBase
{
public EmitBatchArgs()

View File

@ -1,4 +1,4 @@
// <copyright file="IJaegerUdpBatcher.cs" company="OpenTelemetry Authors">
// <copyright file="IJaegerUdpBatcher.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using System.Threading.Tasks;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Threading;
using System.Threading.Tasks;
public interface IJaegerUdpBatcher : IDisposable
{
Task<int> AppendAsync(JaegerSpan span, CancellationToken cancellationToken);

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Net;
using System.Threading.Tasks;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Net;
using System.Threading.Tasks;
public interface IJaegerUdpClient : IDisposable
{
bool Connected { get; }

View File

@ -1,4 +1,4 @@
// <copyright file="InMemoryTransport.cs" company="OpenTelemetry Authors">
// <copyright file="InMemoryTransport.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Transports;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Transports;
public class InMemoryTransport : TClientTransport
{
private readonly MemoryStream byteStream;

View File

@ -1,4 +1,4 @@
// <copyright file="Int128.cs" company="OpenTelemetry Authors">
// <copyright file="Int128.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,12 +13,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Diagnostics;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Diagnostics;
public struct Int128
{
public static Int128 Empty = default;

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenTelemetry.Trace;
public static class JaegerConversionExtensions
{
private const int DaysPerYear = 365;

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerExporterException.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerExporterException.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
public class JaegerExporterException : Exception
{
public JaegerExporterException(string message, Exception originalException)

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerLog.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerLog.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class JaegerLog : TAbstractBase
{
public JaegerLog()

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerSpan.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerSpan.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class JaegerSpan : TAbstractBase
{
public JaegerSpan()

View File

@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class JaegerSpanRef : TAbstractBase
{
public JaegerSpanRef()

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
/// <summary>
/// Represents the different types of Jaeger Spans.
/// </summary>

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerTag.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerTag.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class JaegerTag : TAbstractBase
{
public JaegerTag()

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
/// <summary>
/// Indicates the data type of a Jaeger tag.
/// </summary>

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerThriftClient.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerThriftClient.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Threading;
using System.Threading.Tasks;
using Thrift;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Threading;
using System.Threading.Tasks;
using Thrift;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class JaegerThriftClient : TBaseClient, IDisposable
{
public JaegerThriftClient(TProtocol protocol)

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerThriftClientTransport.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerThriftClientTransport.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,16 +13,15 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Transports;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.IO;
using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Transports;
public class JaegerThriftClientTransport : TClientTransport
{
private readonly IJaegerUdpClient udpClient;

View File

@ -13,15 +13,14 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
public class JaegerUdpBatcher : IJaegerUdpBatcher
{
private const int DefaultMaxPacketSize = 65000;

View File

@ -1,4 +1,4 @@
// <copyright file="JaegerUdpClient.cs" company="OpenTelemetry Authors">
// <copyright file="JaegerUdpClient.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,14 +13,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Net;
using System.Net.Sockets;
using System.Threading.Tasks;
public class JaegerUdpClient : IJaegerUdpClient
{
private readonly UdpClient client;

View File

@ -1,4 +1,4 @@
// <copyright file="Process.cs" company="OpenTelemetry Authors">
// <copyright file="Process.cs" company="OpenTelemetry Authors">
// Copyright 2018, OpenTelemetry Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
namespace OpenTelemetry.Exporter.Jaeger.Implementation
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Thrift.Protocols;
using Thrift.Protocols.Entities;
public class Process : TAbstractBase
{
public Process()

View File

@ -13,11 +13,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
namespace OpenTelemetry.Exporter.Jaeger
{
using System.Collections.Generic;
public class JaegerExporterOptions
{
public string ServiceName { get; set; }

View File

@ -13,18 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Export;
namespace OpenTelemetry.Exporter.Jaeger
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using OpenTelemetry.Exporter.Jaeger.Implementation;
using OpenTelemetry.Trace;
using OpenTelemetry.Trace.Export;
public class JaegerTraceExporter : SpanExporter, IDisposable
{
public const string DefaultAgentUdpHost = "localhost";

View File

@ -13,13 +13,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System.Collections.Generic;
using Newtonsoft.Json;
namespace OpenTelemetry.Exporter.LightStep.Implementation
{
#pragma warning disable SA1402 // File may only contain a single type
using System.Collections.Generic;
using Newtonsoft.Json;
internal class LightStepReport
{
[JsonProperty("auth")]

View File

@ -13,14 +13,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
namespace OpenTelemetry.Exporter.LightStep.Implementation
{
#pragma warning disable SA1402 // File may only contain a single type
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
public class LightStepSpan
{
[JsonProperty("operationName")]

View File

@ -13,14 +13,13 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Trace;
namespace OpenTelemetry.Exporter.LightStep.Implementation
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using OpenTelemetry.Trace;
public static class LightStepSpanExtensions
{
public static LightStepSpan ToLightStepSpan(this Span data)

Some files were not shown because too many files have changed in this diff Show More