Skip to content

Commit 489a632

Browse files
committed
connection for browser
1 parent d4f9c48 commit 489a632

File tree

1 file changed

+2
-0
lines changed
  • docs/use-cases/observability/clickstack/ingesting-data/sdks

1 file changed

+2
-0
lines changed

docs/use-cases/observability/clickstack/ingesting-data/sdks/browser.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ npm install @hyperdx/browser
4646
import HyperDX from '@hyperdx/browser';
4747

4848
HyperDX.init({
49+
url: 'http://localhost:4318',
4950
apiKey: 'YOUR_INGESTION_API_KEY',
5051
service: 'my-frontend-app',
5152
tracePropagationTargets: [/api.myapp.domain/i], // Set to link traces from frontend to backend requests
@@ -69,6 +70,7 @@ This is recommended if your site is not currently built using a bundler.
6970
<script src="//www.unpkg.com/@hyperdx/[email protected]/build/index.js"></script>
7071
<script>
7172
window.HyperDX.init({
73+
url: 'http://localhost:4318',
7274
apiKey: 'YOUR_INGESTION_API_KEY',
7375
service: 'my-frontend-app',
7476
tracePropagationTargets: [/api.myapp.domain/i], // Set to link traces from frontend to backend requests

0 commit comments

Comments
 (0)