diff --git a/.gitmodules b/.gitmodules
index 1f72e80687..f66e08a1b8 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,6 @@
-[submodule "packages/opentelemetry-exporter-collector-grpc/protos"]
- path = packages/opentelemetry-exporter-collector-grpc/protos
+[submodule "packages/opentelemetry-exporter-otlp-grpc/protos"]
+ path = packages/opentelemetry-exporter-otlp-grpc/protos
url = https://github.com/open-telemetry/opentelemetry-proto.git
-[submodule "packages/opentelemetry-exporter-collector-proto/protos"]
- path = packages/opentelemetry-exporter-collector-proto/protos
+[submodule "packages/opentelemetry-exporter-otlp-proto/protos"]
+ path = packages/opentelemetry-exporter-otlp-proto/protos
url = https://github.com/open-telemetry/opentelemetry-proto.git
diff --git a/README.md b/README.md
index 6a7086a503..d0e06cc564 100644
--- a/README.md
+++ b/README.md
@@ -284,7 +284,30 @@ To request automatic tracing support for a module not on this list, please [file
## Upgrade guidelines
-### 0.24.x to x
+### 0.25.x to 1.x.y
+
+Collector exporter packages and types are renamed:
+
+- `@opentelemetry/exporter-collector` => `@opentelemetry/exporter-otlp-http`
+ - `CollectorExporterBase` => `OTLPExporterBase`
+ - `CollectorTraceExporter` => `OTLPTraceExporter`
+ - `CollectorMetricExporter` => `OTLPMetricExporter`
+ - `CollectorExporterBrowserBase` => `OTLPExporterBrowserBase`
+ - `CollectorExporterNodeBase` => `OTLPExporterNodeBase`
+ - `CollectorExporterConfigBase` => `OTLPExporterConfigBase`
+ - `CollectorExporterError` => `OTLPExporterError`
+ - `COLLECTOR_SPAN_KIND_MAPPING` => `OTLP_SPAN_KIND_MAPPING`
+ - `collectorTypes` => `otlpTypes`
+- `@opentelemetry/exporter-collector-grpc` => `@opentelemetry/exporter-otlp-grpc`
+ - `CollectorTraceExporter` => `OTLPTraceExporter`
+ - `CollectorMetricExporter` => `OTLPMetricExporter`
+ - `CollectorExporterConfigNode` => `OTLPExporterConfigNode`
+- `@opentelemetry/exporter-collector-proto` => `@opentelemetry/exporter-otlp-proto`
+ - `CollectorExporterNodeBase` => `OTLPExporterNodeBase`
+ - `CollectorMetricExporter` => `OTLPMetricExporter`
+ - `CollectorTraceExporter` => `OTLPTraceExporter`
+
+### 0.24.x to 0.25.x
- SDKs packages for trace and metrics has been renamed to have a consistent naming schema:
- @opentelemetry/tracing -> @opentelemetry/sdk-trace-base
diff --git a/examples/README.md b/examples/README.md
index e92bef80ac..fc404138f7 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -16,7 +16,7 @@ use the latest and greatest features, and best practices.
|[http](http/) | HTTP Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate |
|[https](https/) | HTTPS Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate |
|[grpc](grpc/) | gRPC Instrumentation to automatically collect trace data and export them to the backend of choice | Intermediate |
-|[collector-exporter-node](collector-exporter-node/) | This example shows how to use `@opentelemetry/exporter-collector` to instrument a simple Node.js application | Intermediate |
+|[otlp-exporter-node](otlp-exporter-node/) | This example shows how to use `@opentelemetry/exporter-otlp-http` to instrument a simple Node.js application | Intermediate |
|[opentracing-shim](opentracing-shim/) | This is a simple example that demonstrates how existing OpenTracing instrumentation can be integrated with OpenTelemetry | Intermediate |
Additional examples can be found at [@opentelemetry/opentelemetry-js-contrib][opentelemetry-js-contrib-examples]
diff --git a/examples/basic-tracer-node/README.md b/examples/basic-tracer-node/README.md
index 46f6d3c3a9..6db3fc7834 100644
--- a/examples/basic-tracer-node/README.md
+++ b/examples/basic-tracer-node/README.md
@@ -41,4 +41,4 @@ Click on the trace to view its details.
Apache License 2.0
-[opentelemetry-collector-url]: https://github.com/open-telemetry/opentelemetry-exporter-collector
+[opentelemetry-collector-url]: https://github.com/open-telemetry/opentelemetry-exporter-otlp-http
diff --git a/examples/collector-exporter-node/README.md b/examples/otlp-exporter-node/README.md
similarity index 88%
rename from examples/collector-exporter-node/README.md
rename to examples/otlp-exporter-node/README.md
index bbaf44229e..abfa241965 100644
--- a/examples/collector-exporter-node/README.md
+++ b/examples/otlp-exporter-node/README.md
@@ -1,8 +1,8 @@
# Overview
-This example shows how to use [@opentelemetry/exporter-collector](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-collector) to instrument a simple Node.js application.
+This example shows how to use [@opentelemetry/exporter-otlp-http](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-otlp-http) to instrument a simple Node.js application.
-This example will export spans data simultaneously using [Exporter Collector](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-collector) and grpc. It will use [proto format](https://github.com/open-telemetry/opentelemetry-proto).
+This example will export spans data simultaneously using [Exporter Collector](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-otlp-http) and grpc. It will use [proto format](https://github.com/open-telemetry/opentelemetry-proto).
## Installation
diff --git a/examples/collector-exporter-node/docker/collector-config.yaml b/examples/otlp-exporter-node/docker/collector-config.yaml
similarity index 100%
rename from examples/collector-exporter-node/docker/collector-config.yaml
rename to examples/otlp-exporter-node/docker/collector-config.yaml
diff --git a/examples/collector-exporter-node/docker/docker-compose.yaml b/examples/otlp-exporter-node/docker/docker-compose.yaml
similarity index 100%
rename from examples/collector-exporter-node/docker/docker-compose.yaml
rename to examples/otlp-exporter-node/docker/docker-compose.yaml
diff --git a/examples/collector-exporter-node/docker/prometheus.yaml b/examples/otlp-exporter-node/docker/prometheus.yaml
similarity index 100%
rename from examples/collector-exporter-node/docker/prometheus.yaml
rename to examples/otlp-exporter-node/docker/prometheus.yaml
diff --git a/examples/collector-exporter-node/images/spans.png b/examples/otlp-exporter-node/images/spans.png
similarity index 100%
rename from examples/collector-exporter-node/images/spans.png
rename to examples/otlp-exporter-node/images/spans.png
diff --git a/examples/collector-exporter-node/metrics.js b/examples/otlp-exporter-node/metrics.js
similarity index 80%
rename from examples/collector-exporter-node/metrics.js
rename to examples/otlp-exporter-node/metrics.js
index d8df8be495..e0065aa697 100644
--- a/examples/collector-exporter-node/metrics.js
+++ b/examples/otlp-exporter-node/metrics.js
@@ -1,9 +1,9 @@
'use strict';
const { DiagConsoleLogger, DiagLogLevel, diag } = require('@opentelemetry/api');
-const { CollectorMetricExporter } = require('@opentelemetry/exporter-collector');
-// const { CollectorMetricExporter } = require('@opentelemetry/exporter-collector-grpc');
-// const { CollectorMetricExporter } = require('@opentelemetry/exporter-collector-proto');
+const { OTLPMetricExporter } = require('@opentelemetry/exporter-otlp-http');
+// const { OTLPMetricExporter } = require('@opentelemetry/exporter-otlp-grpc');
+// const { OTLPMetricExporter } = require('@opentelemetry/exporter-otlp-proto');
const { MeterProvider } = require('@opentelemetry/sdk-metrics-base');
const { Resource } = require('@opentelemetry/resources');
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
@@ -11,7 +11,7 @@ const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventi
// Optional and only needed to see the internal diagnostic logging (during development)
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);
-const metricExporter = new CollectorMetricExporter({
+const metricExporter = new OTLPMetricExporter({
// url: 'http://localhost:55681/v1/metrics',
});
diff --git a/examples/collector-exporter-node/package.json b/examples/otlp-exporter-node/package.json
similarity index 85%
rename from examples/collector-exporter-node/package.json
rename to examples/otlp-exporter-node/package.json
index 296b66a79c..8fb2a32a82 100644
--- a/examples/collector-exporter-node/package.json
+++ b/examples/otlp-exporter-node/package.json
@@ -1,5 +1,5 @@
{
- "name": "example-collector-exporter-node",
+ "name": "example-otlp-exporter-node",
"private": true,
"version": "0.25.0",
"description": "Example of using @opentelemetry/collector-exporter in Node.js",
@@ -30,9 +30,9 @@
"dependencies": {
"@opentelemetry/api": "^1.0.2",
"@opentelemetry/core": "0.25.0",
- "@opentelemetry/exporter-collector": "0.25.0",
- "@opentelemetry/exporter-collector-grpc": "0.25.0",
- "@opentelemetry/exporter-collector-proto": "0.25.0",
+ "@opentelemetry/exporter-otlp-http": "0.25.0",
+ "@opentelemetry/exporter-otlp-grpc": "0.25.0",
+ "@opentelemetry/exporter-otlp-proto": "0.25.0",
"@opentelemetry/resources": "0.25.0",
"@opentelemetry/semantic-conventions": "0.25.0",
"@opentelemetry/sdk-metrics-base": "0.25.0",
diff --git a/examples/collector-exporter-node/tracing.js b/examples/otlp-exporter-node/tracing.js
similarity index 83%
rename from examples/collector-exporter-node/tracing.js
rename to examples/otlp-exporter-node/tracing.js
index c670d3624a..4f718274aa 100644
--- a/examples/collector-exporter-node/tracing.js
+++ b/examples/otlp-exporter-node/tracing.js
@@ -2,18 +2,18 @@
const opentelemetry = require('@opentelemetry/api');
const { BasicTracerProvider, ConsoleSpanExporter, SimpleSpanProcessor } = require('@opentelemetry/sdk-trace-base');
-const { CollectorTraceExporter } = require('@opentelemetry/exporter-collector');
+const { OTLPTraceExporter } = require('@opentelemetry/exporter-otlp-http');
const { Resource } = require('@opentelemetry/resources');
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
-// const { CollectorTraceExporter } = require('@opentelemetry/exporter-collector-grpc');
-// const { CollectorTraceExporter } = require('@opentelemetry/exporter-collector-proto');
+// const { OTLPTraceExporter } = require('@opentelemetry/exporter-otlp-grpc');
+// const { OTLPTraceExporter } = require('@opentelemetry/exporter-otlp-proto');
// opentelemetry.diag.setLogger(
// new opentelemetry.DiagConsoleLogger(),
// opentelemetry.DiagLogLevel.DEBUG,
// );
-const exporter = new CollectorTraceExporter({
+const exporter = new OTLPTraceExporter({
// headers: {
// foo: 'bar'
// },
@@ -28,7 +28,7 @@ provider.addSpanProcessor(new SimpleSpanProcessor(exporter));
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
provider.register();
-const tracer = opentelemetry.trace.getTracer('example-collector-exporter-node');
+const tracer = opentelemetry.trace.getTracer('example-otlp-exporter-node');
// Create a span. A span must be closed.
const parentSpan = tracer.startSpan('main');
diff --git a/examples/tracer-web/examples/fetch/index.js b/examples/tracer-web/examples/fetch/index.js
index dd966100e9..689a119afd 100644
--- a/examples/tracer-web/examples/fetch/index.js
+++ b/examples/tracer-web/examples/fetch/index.js
@@ -1,7 +1,7 @@
'use strict';
import { context, trace } from '@opentelemetry/api';
import { ConsoleSpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base';
-import { CollectorTraceExporter } from '@opentelemetry/exporter-collector';
+import { OTLPTraceExporter } from '@opentelemetry/exporter-otlp-http';
import { WebTracerProvider } from '@opentelemetry/sdk-trace-web';
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
import { ZoneContextManager } from '@opentelemetry/context-zone';
@@ -10,7 +10,7 @@ import { registerInstrumentations } from '@opentelemetry/instrumentation';
const provider = new WebTracerProvider();
provider.addSpanProcessor(new SimpleSpanProcessor(new ConsoleSpanExporter()));
-provider.addSpanProcessor(new SimpleSpanProcessor(new CollectorTraceExporter()));
+provider.addSpanProcessor(new SimpleSpanProcessor(new OTLPTraceExporter()));
provider.register({
contextManager: new ZoneContextManager(),
propagator: new B3Propagator(),
diff --git a/examples/tracer-web/examples/metrics/index.html b/examples/tracer-web/examples/metrics/index.html
index 7951c564ce..76a3ea5c03 100644
--- a/examples/tracer-web/examples/metrics/index.html
+++ b/examples/tracer-web/examples/metrics/index.html
@@ -28,7 +28,7 @@
-If you run the collector from example "opentelemetry-exporter-collector" you should see traces at:
+If you run the collector from example "opentelemetry-exporter-otlp-http" you should see traces at:
http://localhost:9090/