Drop support for Jaeger exporter (#1896)

This commit is contained in:
Piotr Kiełkowicz 2023-01-05 01:26:15 +01:00 committed by GitHub
parent 5284642ae1
commit b51a767c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 8 additions and 54 deletions

View File

@ -35,6 +35,8 @@ This beta release is built on top of [OpenTelemetry .NET](https://github.com/ope
### Removed ### Removed
- Remove support for Jaeger exporter.
### Fixed ### Fixed
- Fix WCF instrumentation on .NET Framework. - Fix WCF instrumentation on .NET Framework.

View File

@ -11,12 +11,10 @@ services:
ports: ports:
- "4317:4317" # OTLP gRPC receiver - "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP/protobuf receiver - "4318:4318" # OTLP HTTP/protobuf receiver
- "6831:6831" # Jaeger UDP/thrift-compact receiver
- "8888:8888" # Prometheus metrics scrape endpoint with collector telemetry - "8888:8888" # Prometheus metrics scrape endpoint with collector telemetry
- "8889:8889" # Prometheus metrics exporter (scrape endpoint) - "8889:8889" # Prometheus metrics exporter (scrape endpoint)
- "9411:9411" # Zipkin receiver - "9411:9411" # Zipkin receiver
- "13133:13133" # health_check extension - "13133:13133" # health_check extension
- "14268:14268" # Jaeger HTTP/thrift-binary receiver
- "55679:55679" # ZPages extension - "55679:55679" # ZPages extension
depends_on: depends_on:
- jaeger - jaeger

View File

@ -38,7 +38,6 @@ service:
traces: traces:
receivers: receivers:
- otlp - otlp
- jaeger
- zipkin - zipkin
processors: [batch] processors: [batch]
exporters: exporters:

View File

@ -127,11 +127,11 @@ for more details.
Exporters output the telemetry. Exporters output the telemetry.
| Environment variable | Description | Default value | | Environment variable | Description | Default value |
|-------------------------|--------------------------------------------------------------------------------------------------------|---------------| |-------------------------|---------------------------------------------------------------------------------------------------|---------------|
| `OTEL_TRACES_EXPORTER` | Traces exporter to be used. The value can be one of the following: `zipkin`, `jaeger`, `otlp`, `none`. | `otlp` | | `OTEL_TRACES_EXPORTER` | Traces exporter to be used. The value can be one of the following: `zipkin`, `otlp`, `none`. | `otlp` |
| `OTEL_METRICS_EXPORTER` | Metrics exporter to be used. The value can be one of the following: `otlp`, `prometheus`, `none`. | `otlp` | | `OTEL_METRICS_EXPORTER` | Metrics exporter to be used. The value can be one of the following: `otlp`, `prometheus`, `none`. | `otlp` |
| `OTEL_LOGS_EXPORTER` | Logs exporter to be used. The value can be one of the following: `otlp`, `none`. | `otlp` | | `OTEL_LOGS_EXPORTER` | Logs exporter to be used. The value can be one of the following: `otlp`, `none`. | `otlp` |
### Traces exporter ### Traces exporter
@ -189,22 +189,6 @@ Important environment variables include:
`.csproj` file. `.csproj` file.
- On .NET Framework, the `grpc` OTLP exporter protocol is not supported. - On .NET Framework, the `grpc` OTLP exporter protocol is not supported.
### Jaeger
To enable the Jaeger exporter, set the `OTEL_TRACES_EXPORTER` environment variable
to `jaeger`.
To customize the Jaeger exporter using environment variables, see the
[Jaeger exporter documentation](https://github.com/open-telemetry/opentelemetry-dotnet/tree/core-1.4.0-rc.1/src/OpenTelemetry.Exporter.Jaeger#environment-variables).
Important environment variables include:
| Environment variable | Description | Default value |
|-----------------------------------|------------------------------------------------------------------------------------------------------|-------------------------------------|
| `OTEL_EXPORTER_JAEGER_AGENT_HOST` | Host name for the Jaeger agent. Used for the `udp/thrift.compact` protocol. | `localhost` |
| `OTEL_EXPORTER_JAEGER_AGENT_PORT` | Port for the Jaeger agent. Used for the `udp/thrift.compact` protocol. | `6831` |
| `OTEL_EXPORTER_JAEGER_ENDPOINT` | Jaeger Collector HTTP endpoint. Used for the `http/thrift.binary` protocol. | `http://localhost:14268/api/traces` |
| `OTEL_EXPORTER_JAEGER_PROTOCOL` | Protocol to use for Jaeger exporter. Supported values are `udp/thrift.compact`, `http/thrift.binary` | `udp/thrift.compact` |
### Prometheus ### Prometheus
> ⚠️ **Do NOT use in production.** > ⚠️ **Do NOT use in production.**

View File

@ -69,7 +69,6 @@ public class MyPlugin
|------------------------------------------------------------------------------------------------|---------------------------------------------------|---------------| |------------------------------------------------------------------------------------------------|---------------------------------------------------|---------------|
| OpenTelemetry.Exporter.ConsoleExporterOptions | OpenTelemetry.Exporter.Console | 1.4.0-rc.1 | | OpenTelemetry.Exporter.ConsoleExporterOptions | OpenTelemetry.Exporter.Console | 1.4.0-rc.1 |
| OpenTelemetry.Exporter.ZipkinExporterOptions | OpenTelemetry.Exporter.Zipkin | 1.4.0-rc.1 | | OpenTelemetry.Exporter.ZipkinExporterOptions | OpenTelemetry.Exporter.Zipkin | 1.4.0-rc.1 |
| OpenTelemetry.Exporter.JaegerExporterOptions | OpenTelemetry.Exporter.Jaeger | 1.4.0-rc.1 |
| OpenTelemetry.Exporter.OtlpExporterOptions | OpenTelemetry.Exporter.OpenTelemetryProtocol | 1.4.0-rc.1 | | OpenTelemetry.Exporter.OtlpExporterOptions | OpenTelemetry.Exporter.OpenTelemetryProtocol | 1.4.0-rc.1 |
| OpenTelemetry.Instrumentation.AspNet.AspNetInstrumentationOptions | OpenTelemetry.Instrumentation.AspNet | 1.0.0-rc9.7 | | OpenTelemetry.Instrumentation.AspNet.AspNetInstrumentationOptions | OpenTelemetry.Instrumentation.AspNet | 1.0.0-rc9.7 |
| OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreInstrumentationOptions | OpenTelemetry.Instrumentation.AspNetCore | 1.0.0-rc9.10 | | OpenTelemetry.Instrumentation.AspNetCore.AspNetCoreInstrumentationOptions | OpenTelemetry.Instrumentation.AspNetCore | 1.0.0-rc9.10 |

View File

@ -2,7 +2,7 @@
## Description ## Description
This is a demonstarative example that uses Docker Compose. This is a demonstrative example that uses Docker Compose.
It consists of following services: It consists of following services:

View File

@ -8,10 +8,6 @@ receivers:
protocols: protocols:
grpc: grpc:
http: http:
jaeger:
protocols:
thrift_compact:
thrift_http:
zipkin: zipkin:
processors: processors:
@ -42,7 +38,6 @@ service:
traces: traces:
receivers: receivers:
- otlp - otlp
- jaeger
- zipkin - zipkin
processors: [batch] processors: [batch]
exporters: exporters:

View File

@ -29,7 +29,6 @@ void CorProfiler::InitNetFxAssemblyRedirectsMap()
{ L"OpenTelemetry.Api", {1, 0, 0, 0} }, { L"OpenTelemetry.Api", {1, 0, 0, 0} },
{ L"OpenTelemetry.AutoInstrumentation", {0, 5, 1, 0} }, { L"OpenTelemetry.AutoInstrumentation", {0, 5, 1, 0} },
{ L"OpenTelemetry.Exporter.Console", {1, 0, 0, 0} }, { L"OpenTelemetry.Exporter.Console", {1, 0, 0, 0} },
{ L"OpenTelemetry.Exporter.Jaeger", {1, 0, 0, 0} },
{ L"OpenTelemetry.Exporter.OpenTelemetryProtocol", {1, 0, 0, 0} }, { L"OpenTelemetry.Exporter.OpenTelemetryProtocol", {1, 0, 0, 0} },
{ L"OpenTelemetry.Exporter.Prometheus.HttpListener", {1, 0, 0, 0} }, { L"OpenTelemetry.Exporter.Prometheus.HttpListener", {1, 0, 0, 0} },
{ L"OpenTelemetry.Exporter.Zipkin", {1, 0, 0, 0} }, { L"OpenTelemetry.Exporter.Zipkin", {1, 0, 0, 0} },

View File

@ -96,7 +96,6 @@ internal static class EnvironmentConfigurationTracerHelper
return settings.TracesExporter switch return settings.TracesExporter switch
{ {
TracesExporter.Zipkin => Wrappers.AddZipkinExporter(builder, pluginManager), TracesExporter.Zipkin => Wrappers.AddZipkinExporter(builder, pluginManager),
TracesExporter.Jaeger => Wrappers.AddJaegerExporter(builder, pluginManager),
TracesExporter.Otlp => Wrappers.AddOtlpExporter(builder, settings, pluginManager), TracesExporter.Otlp => Wrappers.AddOtlpExporter(builder, settings, pluginManager),
TracesExporter.None => builder, TracesExporter.None => builder,
_ => throw new ArgumentOutOfRangeException($"Traces exporter '{settings.TracesExporter}' is incorrect") _ => throw new ArgumentOutOfRangeException($"Traces exporter '{settings.TracesExporter}' is incorrect")
@ -194,12 +193,6 @@ internal static class EnvironmentConfigurationTracerHelper
return builder.AddZipkinExporter(pluginManager.ConfigureTracesOptions); return builder.AddZipkinExporter(pluginManager.ConfigureTracesOptions);
} }
[MethodImpl(MethodImplOptions.NoInlining)]
public static TracerProviderBuilder AddJaegerExporter(TracerProviderBuilder builder, PluginManager pluginManager)
{
return builder.AddJaegerExporter(pluginManager.ConfigureTracesOptions);
}
[MethodImpl(MethodImplOptions.NoInlining)] [MethodImpl(MethodImplOptions.NoInlining)]
public static TracerProviderBuilder AddOtlpExporter(TracerProviderBuilder builder, TracerSettings settings, PluginManager pluginManager) public static TracerProviderBuilder AddOtlpExporter(TracerProviderBuilder builder, TracerSettings settings, PluginManager pluginManager)
{ {

View File

@ -131,8 +131,6 @@ internal class TracerSettings : Settings
return TracesExporter.Otlp; return TracesExporter.Otlp;
case Constants.ConfigurationValues.Exporters.Zipkin: case Constants.ConfigurationValues.Exporters.Zipkin:
return TracesExporter.Zipkin; return TracesExporter.Zipkin;
case Constants.ConfigurationValues.Exporters.Jaeger:
return TracesExporter.Jaeger;
case Constants.ConfigurationValues.None: case Constants.ConfigurationValues.None:
return TracesExporter.None; return TracesExporter.None;
default: default:

View File

@ -31,11 +31,6 @@ internal enum TracesExporter
/// </summary> /// </summary>
Otlp, Otlp,
/// <summary>
/// Jaeger exporter.
/// </summary>
Jaeger,
/// <summary> /// <summary>
/// Zipkin exporter. /// Zipkin exporter.
/// </summary> /// </summary>

View File

@ -45,7 +45,6 @@ internal static class Constants
public const string Otlp = "otlp"; public const string Otlp = "otlp";
public const string Prometheus = "prometheus"; public const string Prometheus = "prometheus";
public const string Zipkin = "zipkin"; public const string Zipkin = "zipkin";
public const string Jaeger = "jaeger";
} }
public static class Propagators public static class Propagators

View File

@ -10,7 +10,6 @@
<PackageReference Include="OpenTelemetry" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Api" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry.Api" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Exporter.Jaeger" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry.Exporter.Prometheus.HttpListener" Version="1.4.0-rc.1" />
<PackageReference Include="OpenTelemetry.Exporter.Zipkin" Version="1.4.0-rc.1" /> <PackageReference Include="OpenTelemetry.Exporter.Zipkin" Version="1.4.0-rc.1" />

View File

@ -27,7 +27,6 @@
/net/OpenTelemetry.AutoInstrumentation.pdb, /net/OpenTelemetry.AutoInstrumentation.pdb,
/net/OpenTelemetry.AutoInstrumentation.xml, /net/OpenTelemetry.AutoInstrumentation.xml,
/net/OpenTelemetry.Exporter.Console.dll, /net/OpenTelemetry.Exporter.Console.dll,
/net/OpenTelemetry.Exporter.Jaeger.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll,
/net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll, /net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll,

View File

@ -27,7 +27,6 @@
/net/OpenTelemetry.AutoInstrumentation.pdb, /net/OpenTelemetry.AutoInstrumentation.pdb,
/net/OpenTelemetry.AutoInstrumentation.xml, /net/OpenTelemetry.AutoInstrumentation.xml,
/net/OpenTelemetry.Exporter.Console.dll, /net/OpenTelemetry.Exporter.Console.dll,
/net/OpenTelemetry.Exporter.Jaeger.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll,
/net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll, /net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll,

View File

@ -27,7 +27,6 @@
/net/OpenTelemetry.AutoInstrumentation.pdb, /net/OpenTelemetry.AutoInstrumentation.pdb,
/net/OpenTelemetry.AutoInstrumentation.xml, /net/OpenTelemetry.AutoInstrumentation.xml,
/net/OpenTelemetry.Exporter.Console.dll, /net/OpenTelemetry.Exporter.Console.dll,
/net/OpenTelemetry.Exporter.Jaeger.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll,
/net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll, /net/OpenTelemetry.Exporter.OpenTelemetryProtocol.dll,
/net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll, /net/OpenTelemetry.Exporter.Prometheus.HttpListener.dll,

View File

@ -26,7 +26,6 @@
\net\OpenTelemetry.AutoInstrumentation.pdb, \net\OpenTelemetry.AutoInstrumentation.pdb,
\net\OpenTelemetry.AutoInstrumentation.xml, \net\OpenTelemetry.AutoInstrumentation.xml,
\net\OpenTelemetry.Exporter.Console.dll, \net\OpenTelemetry.Exporter.Console.dll,
\net\OpenTelemetry.Exporter.Jaeger.dll,
\net\OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll, \net\OpenTelemetry.Exporter.OpenTelemetryProtocol.Logs.dll,
\net\OpenTelemetry.Exporter.OpenTelemetryProtocol.dll, \net\OpenTelemetry.Exporter.OpenTelemetryProtocol.dll,
\net\OpenTelemetry.Exporter.Prometheus.HttpListener.dll, \net\OpenTelemetry.Exporter.Prometheus.HttpListener.dll,
@ -72,7 +71,6 @@
\netfx\OpenTelemetry.AutoInstrumentation.pdb, \netfx\OpenTelemetry.AutoInstrumentation.pdb,
\netfx\OpenTelemetry.AutoInstrumentation.xml, \netfx\OpenTelemetry.AutoInstrumentation.xml,
\netfx\OpenTelemetry.Exporter.Console.dll, \netfx\OpenTelemetry.Exporter.Console.dll,
\netfx\OpenTelemetry.Exporter.Jaeger.dll,
\netfx\OpenTelemetry.Exporter.OpenTelemetryProtocol.dll, \netfx\OpenTelemetry.Exporter.OpenTelemetryProtocol.dll,
\netfx\OpenTelemetry.Exporter.Prometheus.HttpListener.dll, \netfx\OpenTelemetry.Exporter.Prometheus.HttpListener.dll,
\netfx\OpenTelemetry.Exporter.Zipkin.dll, \netfx\OpenTelemetry.Exporter.Zipkin.dll,

View File

@ -126,7 +126,6 @@ public class SettingsTests : IDisposable
[Theory] [Theory]
[InlineData("none", TracesExporter.None)] [InlineData("none", TracesExporter.None)]
[InlineData("jaeger", TracesExporter.Jaeger)]
[InlineData("otlp", TracesExporter.Otlp)] [InlineData("otlp", TracesExporter.Otlp)]
[InlineData("zipkin", TracesExporter.Zipkin)] [InlineData("zipkin", TracesExporter.Zipkin)]
internal void TracesExporter_SupportedValues(string tracesExporter, TracesExporter expectedTracesExporter) internal void TracesExporter_SupportedValues(string tracesExporter, TracesExporter expectedTracesExporter)