Skip to content

Commit

Permalink
Change default port
Browse files Browse the repository at this point in the history
  • Loading branch information
theletterf committed Sep 28, 2021
1 parent 7aaee68 commit b817b4f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This Splunk distribution comes with the following defaults:
- [W3C tracecontext and baggage propagation](https://www.w3.org/TR/trace-context).
- [OTLP exporter](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-exporter-collector-proto)
configured to send spans to a locally running [OpenTelemetry Collector](https://github.com/open-telemetry/opentelemetry-collector) over HTTP
(default endpoint: `http://localhost:55681/v1/traces`).
(default endpoint: `http://localhost:4317`).
- Unlimited default limits for [configuration options](#trace-configuration) to
support full-fidelity traces.

Expand Down
4 changes: 2 additions & 2 deletions docs/advanced-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ The following table contain the configuration options supported by this distribu

| Environment variable | Arguments to ``startTracing()`` | Default value | Notes
| ----------------------------- | ------------------------------- | ------------------------------------- | ----
| OTEL_EXPORTER_OTLP_ENDPOINT | endpoint | `http://localhost:55681/v1/traces` | The OTLP endpoint to export to. Only OTLP over HTTP is supported.
| OTEL_EXPORTER_OTLP_ENDPOINT | endpoint | `http://localhost:4317` | The OTLP endpoint to export to. Only OTLP over HTTP is supported.
| OTEL_TRACES_EXPORTER | tracesExporter | `otlp` | Chooses the exporter. Shortcut for setting `spanExporterFactory`. One of [`otlp`, `jaeger-thrift-http`, `jaeger-thrift-splunk`]. See [`TracesExporter`](../src/options.ts).
| OTEL_PROPAGATORS | propagators | `tracecontext,baggage` | Comma-delimited list of propagators to use. Valid keys: `baggage`, `tracecontext`, `b3multi`, `b3`.
| OTEL_SERVICE_NAME | serviceName | `unnamed-node-service` | The service name of this Node service.
| SPLUNK_ACCESS_TOKEN | accessToken | | The optional access token for exporting signal data directly to SignalFx API.
| SPLUNK_ACCESS_TOKEN | accessToken | | The optional access token for exporting signal data directly to Splunk Observability Cloud.
| OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT | maxAttrLength | 1200 | Maximum length of string attribute value in characters. Longer values are truncated.
| SPLUNK_TRACE_RESPONSE_HEADER_ENABLED | serverTimingEnabled | `true` | Enable injection of `Server-Timing` header to HTTP responses.
| OTEL_RESOURCE_ATTRIBUTES | | | Comma-separated list of resource attributes added to every reported span. <details><summary>Example</summary>`key1=val1,key2=val2`</details>
Expand Down
4 changes: 2 additions & 2 deletions examples/basic/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Basic Example

This example showcases basic integration with OpenTelemetry(OTel): automatic(HTTP calls) as well as manual([index.js](./index.js) manually creates spans) instrumentation.
By default it requires OTel Collector to be running with OTLP reciever open on `localhost:55681`.
By default it requires OTel Collector to be running with OTLP reciever open on `localhost:4317`.

```shell
docker run --name otel-collector -d -p 55681:55681 otel/opentelemetry-collector
docker run --name otel-collector -d -p 4317:4317 otel/opentelemetry-collector
npm start
```

Expand Down
2 changes: 1 addition & 1 deletion examples/express/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ There is an exmample [.env](./.env.collector) file included, which following com

```shell
# make sure the collector is running
docker run --name otel-collector -d -p 55681:55681 otel/opentelemetry-collector
docker run --name otel-collector -d -p 4317:4317 otel/opentelemetry-collector
# run the example server
npm run server:collector
# in a separate terminal:
Expand Down
2 changes: 1 addition & 1 deletion test/tracing/tracing.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('tracing:otlp', () => {
it('setups tracing with defaults', () => {
startTracing();
assertTracingPipeline(
'http://localhost:55681/v1/traces',
'http://localhost:4317',
'unnamed-node-service',
'',
1200,
Expand Down

0 comments on commit b817b4f

Please sign in to comment.