From 7c4a953954a737455ee0afe74b661bf9e114e0e7 Mon Sep 17 00:00:00 2001
From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com>
Date: Thu, 27 Jul 2023 18:33:52 -0700
Subject: [PATCH] Remove OTLP Exporter Grpc project
---
OpenTelemetry.proj | 2 -
OpenTelemetry.sln | 8 +--
.../netstandard2.0/PublicAPI.Shipped.txt | 0
.../netstandard2.0/PublicAPI.Unshipped.txt | 0
...Exporter.OpenTelemetryProtocol.Grpc.csproj | 25 -------
.../README.md | 71 -------------------
6 files changed, 1 insertion(+), 105 deletions(-)
delete mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Shipped.txt
delete mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt
delete mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj
delete mode 100644 src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/README.md
diff --git a/OpenTelemetry.proj b/OpenTelemetry.proj
index 7760c785c59..f6fdfbafb44 100644
--- a/OpenTelemetry.proj
+++ b/OpenTelemetry.proj
@@ -7,8 +7,6 @@
-
-
diff --git a/OpenTelemetry.sln b/OpenTelemetry.sln
index 70c27a66eb7..f19cfbd3f5c 100644
--- a/OpenTelemetry.sln
+++ b/OpenTelemetry.sln
@@ -238,8 +238,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApp.AspNetCore", "test\
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "redaction", "docs\logs\redaction\redaction.csproj", "{A2DF46DE-50D7-4887-8C9D-4BD79CA19FAA}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc", "src\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc\OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj", "{7263001A-49F8-4C3C-AAA8-998F12DAAF64}"
-EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Exporter.Console.Tests", "test\OpenTelemetry.Exporter.Console.Tests\OpenTelemetry.Exporter.Console.Tests.csproj", "{011E70E1-152A-47BB-AF83-12DD12B125ED}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenTelemetry.Api.ProviderBuilderExtensions", "src\OpenTelemetry.Api.ProviderBuilderExtensions\OpenTelemetry.Api.ProviderBuilderExtensions.csproj", "{171A87CB-393C-4296-913F-E704CD8CEAE9}"
@@ -282,7 +280,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{A49299
src\Shared\StatusHelper.cs = src\Shared\StatusHelper.cs
src\Shared\TagAndValueTransformer.cs = src\Shared\TagAndValueTransformer.cs
src\Shared\TagTransformer.cs = src\Shared\TagTransformer.cs
- src\Shared\TagTransformerJsonHelper.cs = src\Shared\TagTransformerJsonHelper.cs
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "DiagnosticSourceInstrumentation", "DiagnosticSourceInstrumentation", "{28F3EC79-660C-4659-8B73-F90DC1173316}"
@@ -311,6 +308,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shims", "Shims", "{A0CB9A10
ProjectSection(SolutionItems) = preProject
src\Shared\Shims\IsExternalInit.cs = src\Shared\Shims\IsExternalInit.cs
src\Shared\Shims\NullableAttributes.cs = src\Shared\Shims\NullableAttributes.cs
+ src\Shared\Shims\UnconditionalSuppressMessageAttribute.cs = src\Shared\Shims\UnconditionalSuppressMessageAttribute.cs
EndProjectSection
EndProject
Global
@@ -551,10 +549,6 @@ Global
{A2DF46DE-50D7-4887-8C9D-4BD79CA19FAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2DF46DE-50D7-4887-8C9D-4BD79CA19FAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A2DF46DE-50D7-4887-8C9D-4BD79CA19FAA}.Release|Any CPU.Build.0 = Release|Any CPU
- {7263001A-49F8-4C3C-AAA8-998F12DAAF64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {7263001A-49F8-4C3C-AAA8-998F12DAAF64}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {7263001A-49F8-4C3C-AAA8-998F12DAAF64}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {7263001A-49F8-4C3C-AAA8-998F12DAAF64}.Release|Any CPU.Build.0 = Release|Any CPU
{011E70E1-152A-47BB-AF83-12DD12B125ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{011E70E1-152A-47BB-AF83-12DD12B125ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{011E70E1-152A-47BB-AF83-12DD12B125ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Shipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Shipped.txt
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/.publicApi/netstandard2.0/PublicAPI.Unshipped.txt
deleted file mode 100644
index e69de29bb2d..00000000000
diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj
deleted file mode 100644
index a757059df0f..00000000000
--- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.csproj
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- netstandard2.0
- OpenTelemetry protocol exporter over gRPC for OpenTelemetry .NET
- $(PackageTags);OTLP;gRPC
- core-
-
-
-
-
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/README.md b/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/README.md
deleted file mode 100644
index f26f22a5dae..00000000000
--- a/src/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc/README.md
+++ /dev/null
@@ -1,71 +0,0 @@
-# gRPC-based implementation of OTLP Exporter for OpenTelemetry .NET
-
-[![NuGet](https://img.shields.io/nuget/v/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.svg)](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc)
-[![NuGet](https://img.shields.io/nuget/dt/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc.svg)](https://www.nuget.org/packages/OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc)
-
-[gRPC-based implementation of OTLP Exporter](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md)
-implementation.
-
-## Prerequisite
-
-* [Get OpenTelemetry Collector](https://opentelemetry.io/docs/collector/)
-
-## Installation
-
-```shell
-dotnet add package OpenTelemetry.Exporter.OpenTelemetryProtocol.Grpc
-```
-
-## Configuration
-
-You can configure the `OtlpExporter` through `Options` types properties
-and environment variables.
-The `Options` type setters take precedence over the environment variables.
-
-## Options Properties
-
-* `BatchExportProcessorOptions`: Configuration options for the batch exporter.
- Only used if ExportProcessorType is set to Batch.
-
-* `Endpoint`: Target to which the exporter is going to send traces or metrics.
- The endpoint must be a valid Uri with scheme (http or https) and host, and MAY
- contain a port and path.
-
-* `ExportProcessorType`: Whether the exporter should use [Batch or Simple
- exporting
- processor](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#built-in-span-processors).
-
-* `Headers`: Optional headers for the connection.
-
-* `TimeoutMilliseconds` : Max waiting time for the backend to process a batch.
-
-See the [`TestOtlpExporter.cs`](../../examples/Console/TestOtlpExporter.cs) for
-an example of how to use the exporter.
-
-## Environment Variables
-
-The following environment variables can be used to override the default
-values of the `OtlpExporterOptions`
-(following the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md)).
-
-| Environment variable | `OtlpExporterOptions` property |
-| ------------------------------| --------------------------------------|
-| `OTEL_EXPORTER_OTLP_ENDPOINT` | `Endpoint` |
-| `OTEL_EXPORTER_OTLP_HEADERS` | `Headers` |
-| `OTEL_EXPORTER_OTLP_TIMEOUT` | `TimeoutMilliseconds` |
-
-The following environment variables can be used to override the default
-values of the `PeriodicExportingMetricReaderOptions`
-(following the [OpenTelemetry specification](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.12.0/specification/sdk-environment-variables.md#periodic-exporting-metricreader).
-
-| Environment variable | `PeriodicExportingMetricReaderOptions` property |
-| ------------------------------| ------------------------------------------------|
-| `OTEL_METRIC_EXPORT_INTERVAL` | `ExportIntervalMilliseconds` |
-| `OTEL_METRIC_EXPORT_TIMEOUT` | `ExportTimeoutMilliseconds` |
-
-## References
-
-* [OpenTelemetry
- Collector](https://github.com/open-telemetry/opentelemetry-collector)
-* [OpenTelemetry Project](https://opentelemetry.io/)
-* [OTLP proto files](https://github.com/open-telemetry/opentelemetry-proto)