Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 5948659

Browse files
author
Amir Blum
authored
Merge pull request #48 from aspecto-io/expose-collector-endpoint
feat: expose env for collector otlp endpoint
2 parents 2ddb414 + 1ee1691 commit 5948659

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ services:
4343
- "./services/scraper-service/src:/usr/src/app/src"
4444
environment:
4545
- NODE_ENV
46+
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
4647
- ASPECTO_AUTH
4748
- ASPECTO_LIVE_FLOWS_URL
4849
- ASPECTO_GITHASH
@@ -63,6 +64,7 @@ services:
6364
- "./services/wikipedia-service/src:/usr/src/app/src"
6465
environment:
6566
- NODE_ENV
67+
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
6668
- MODE=PROCESSOR
6769
- ASPECTO_LIVE_FLOWS_URL
6870
- ASPECTO_AUTH
@@ -85,6 +87,7 @@ services:
8587
- "8002:8080"
8688
environment:
8789
- NODE_ENV
90+
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
8891
- MODE=SERVER
8992
- ASPECTO_LIVE_FLOWS_URL
9093
- ASPECTO_AUTH

services/scraper-service/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ init({
44
process.env.ASPECTO_AUTH ?? "e97d7a26-db48-4afd-bba2-be4d453047eb",
55
local: process.env.NODE_ENV !== "production",
66
logger: console,
7+
otCollectorEndpoint: process.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,
78
});
89
import axios from "axios";
910
import express, { Request, Response, NextFunction } from "express";

services/user-service/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ init({
44
process.env.ASPECTO_AUTH ?? "e97d7a26-db48-4afd-bba2-be4d453047eb",
55
local: process.env.NODE_ENV !== "production",
66
logger: console,
7+
otCollectorEndpoint: process.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,
78
});
89

910
import mongoose from "mongoose";

services/wikipedia-service/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ initAspecto({
55
local: process.env.NODE_ENV !== 'production',
66
logger: console,
77
packageName: `wikipedia-service(${process.env.MODE.toLowerCase()})`,
8+
otCollectorEndpoint: process.env.OTEL_EXPORTER_OTLP_TRACES_ENDPOINT,
89
});
910
import { SQS } from "aws-sdk";
1011
import { Consumer } from "sqs-consumer";

0 commit comments

Comments
 (0)