Skip to content

Commit d67fe60

Browse files
feat: Update OTLP endpoint in OpenTelemetry documentation (#1943)
Updated the OTEL_EXPORTER_OTLP_ENDPOINT from http://localhost:4318/v1/traces to http://localhost:4318 in the following OpenTelemetry instrumentation documentation files: - data/docs/instrumentation/opentelemetry-angular.mdx - data/docs/instrumentation/opentelemetry-express.mdx - data/docs/instrumentation/opentelemetry-javascript.mdx - data/docs/instrumentation/opentelemetry-nestjs.mdx - data/docs/instrumentation/opentelemetry-nuxtjs.mdx This change ensures the correct OTLP endpoint is used for traces. Signed-off-by: Jugal Kishore <[email protected]>
1 parent 5a7161f commit d67fe60

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

data/docs/instrumentation/opentelemetry-angular.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
146146

147147
```bash
148148
export OTEL_TRACES_EXPORTER="otlp"
149-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
149+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
150150
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
151151
export OTEL_SERVICE_NAME="<service_name>"
152152
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -471,7 +471,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
471471

472472
```bash
473473
export OTEL_TRACES_EXPORTER="otlp"
474-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
474+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
475475
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
476476
export OTEL_SERVICE_NAME="<service_name>"
477477
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -690,7 +690,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
690690

691691
```bash
692692
$env:OTEL_TRACES_EXPORTER="otlp"
693-
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
693+
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
694694
$env:OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
695695
$env:OTEL_SERVICE_NAME="<service_name>"
696696
$env:NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"

data/docs/instrumentation/opentelemetry-express.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
550550

551551
```bash
552552
export OTEL_TRACES_EXPORTER="otlp"
553-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
553+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
554554
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
555555
export OTEL_SERVICE_NAME="<service_name>"
556556
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -845,7 +845,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
845845

846846
```bash
847847
$env:OTEL_TRACES_EXPORTER="otlp"
848-
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
848+
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
849849
$env:OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
850850
$env:OTEL_SERVICE_NAME="<service_name>"
851851
$env:NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"

data/docs/instrumentation/opentelemetry-javascript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
201201

202202
```bash
203203
export OTEL_TRACES_EXPORTER="otlp"
204-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
204+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
205205
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
206206
export OTEL_SERVICE_NAME="<service_name>"
207207
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -559,7 +559,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
559559

560560
```bash
561561
export OTEL_TRACES_EXPORTER="otlp"
562-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
562+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
563563
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
564564
export OTEL_SERVICE_NAME="<service_name>"
565565
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -858,7 +858,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
858858

859859
```bash
860860
$env:OTEL_TRACES_EXPORTER="otlp"
861-
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
861+
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
862862
$env:OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
863863
$env:OTEL_SERVICE_NAME="<service_name>"
864864
$env:NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"

data/docs/instrumentation/opentelemetry-nestjs.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
261261

262262
```bash
263263
export OTEL_TRACES_EXPORTER="otlp"
264-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
264+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
265265
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
266266
export OTEL_SERVICE_NAME="<service_name>"
267267
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -673,7 +673,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
673673

674674
```bash
675675
export OTEL_TRACES_EXPORTER="otlp"
676-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
676+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
677677
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
678678
export OTEL_SERVICE_NAME="<service_name>"
679679
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -1090,7 +1090,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
10901090

10911091
```bash
10921092
$env:OTEL_TRACES_EXPORTER="otlp"
1093-
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
1093+
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
10941094
$env:OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
10951095
$env:OTEL_SERVICE_NAME="<service_name>"
10961096
$env:NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -1653,4 +1653,4 @@ opentelemetry.trace.getTracer('your_tracer_name').getActiveSpanProcessor().shutd
16531653
*/}
16541654
16551655
1656-
{/* <InstrumentationFAQ /> */}
1656+
{/* <InstrumentationFAQ /> */}

data/docs/instrumentation/opentelemetry-nuxtjs.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
208208

209209
```bash
210210
export OTEL_TRACES_EXPORTER="otlp"
211-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
211+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
212212
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
213213
export OTEL_SERVICE_NAME="<service_name>"
214214
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -588,7 +588,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
588588

589589
```bash
590590
export OTEL_TRACES_EXPORTER="otlp"
591-
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
591+
export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
592592
export OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
593593
export OTEL_SERVICE_NAME="<service_name>"
594594
export NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -938,7 +938,7 @@ npm install --save @opentelemetry/auto-instrumentations-node
938938

939939
```bash
940940
$env:OTEL_TRACES_EXPORTER="otlp"
941-
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318/v1/traces"
941+
$env:OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318"
942942
$env:OTEL_NODE_RESOURCE_DETECTORS="env,host,os"
943943
$env:OTEL_SERVICE_NAME="<service_name>"
944944
$env:NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"
@@ -1321,4 +1321,4 @@ opentelemetry.trace.getTracer('your_tracer_name').getActiveSpanProcessor().shutd
13211321
13221322
## Sample Nuxt JS App
13231323
1324-
- We have included a sample applications at: [Sample NuxtJS App Github Repo](https://github.com/SigNoz/sample-nuxtjs-app)
1324+
- We have included a sample applications at: [Sample NuxtJS App Github Repo](https://github.com/SigNoz/sample-nuxtjs-app)

0 commit comments

Comments
 (0)