Skip to content

Commit 7e7f33d

Browse files
test(otel-collector): add integration tests for trace ingestion (#7315)
1 parent bda94c5 commit 7e7f33d

File tree

3 files changed

+681
-0
lines changed

3 files changed

+681
-0
lines changed

integration-tests/docker-compose.integration.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,37 @@ services:
255255
ports:
256256
- '3002:3002'
257257

258+
otel-collector:
259+
depends_on:
260+
clickhouse:
261+
condition: service_healthy
262+
server:
263+
condition: service_healthy
264+
build:
265+
context: ${PWD}/docker/configs/otel-collector
266+
dockerfile: ${PWD}/docker/otel-collector.dockerfile
267+
environment:
268+
HIVE_OTEL_AUTH_ENDPOINT: 'http://server:3001/otel-auth'
269+
CLICKHOUSE_PROTOCOL: 'http'
270+
CLICKHOUSE_HOST: clickhouse
271+
CLICKHOUSE_PORT: 8123
272+
CLICKHOUSE_USERNAME: '${CLICKHOUSE_USER}'
273+
CLICKHOUSE_PASSWORD: '${CLICKHOUSE_PASSWORD}'
274+
volumes:
275+
- '${PWD}/docker/configs/otel-collector/builder-config.yaml:/builder-config.yaml'
276+
- '${PWD}/docker/configs/otel-collector/config.yaml:/etc/otel-config.yaml'
277+
ports:
278+
- '4317:4317'
279+
- '4318:4318'
280+
networks:
281+
- 'stack'
282+
healthcheck:
283+
test: ['CMD', 'wget', '--spider', '-q', 'localhost:13133']
284+
interval: 5s
285+
timeout: 5s
286+
retries: 6
287+
start_period: 10s
288+
258289
#
259290
# Awkwardly, we need to override some services for different reasons
260291
#

integration-tests/testkit/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const LOCAL_SERVICES = {
2020
schema: 6500,
2121
external_composition: 3012,
2222
mock_server: 3042,
23+
'otel-collector': 4318,
2324
} as const;
2425

2526
export type KnownServices = keyof typeof LOCAL_SERVICES;

0 commit comments

Comments
 (0)