Skip to content

Commit

Permalink
docs(exporter-collector): change CollectorTransportNode to CollectorP…
Browse files Browse the repository at this point in the history
…rotocolNode
  • Loading branch information
hongbo-miao authored Aug 16, 2020
1 parent 27e6c2d commit 98c772e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/opentelemetry-exporter-collector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ Note, that this will only work if TLS is also configured on the server.

```js
const { BasicTracerProvider, SimpleSpanProcessor } = require('@opentelemetry/tracing');
const { CollectorExporter, CollectorTransportNode } = require('@opentelemetry/exporter-collector');
const { CollectorExporter, CollectorProtocolNode } = require('@opentelemetry/exporter-collector');

const collectorOptions = {
protocolNode: CollectorTransportNode.HTTP_JSON,
protocolNode: CollectorProtocolNode.HTTP_JSON,
serviceName: 'basic-service',
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/trace
headers: {
Expand All @@ -161,10 +161,10 @@ provider.register();

```js
const { BasicTracerProvider, SimpleSpanProcessor } = require('@opentelemetry/tracing');
const { CollectorExporter, CollectorTransportNode } = require('@opentelemetry/exporter-collector');
const { CollectorExporter, CollectorProtocolNode } = require('@opentelemetry/exporter-collector');

const collectorOptions = {
protocolNode: CollectorTransportNode.HTTP_PROTO,
protocolNode: CollectorProtocolNode.HTTP_PROTO,
serviceName: 'basic-service',
url: '<opentelemetry-collector-url>', // url is optional and can be omitted - default is http://localhost:55681/v1/trace
headers: {
Expand Down

0 comments on commit 98c772e

Please sign in to comment.