Skip to content

Commit c46e3d5

Browse files
committed
Fix for BigInt values getting stripped from log properties
1 parent 93bc32c commit c46e3d5

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

apps/webapp/app/v3/otlpExporter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ function isStringValue(value: AnyValue | undefined): value is { stringValue: str
693693
function isIntValue(value: AnyValue | undefined): value is { intValue: bigint } {
694694
if (!value) return false;
695695

696-
return typeof value.intValue === "number";
696+
return typeof value.intValue === "number" || typeof value.intValue === "bigint";
697697
}
698698

699699
function isDoubleValue(value: AnyValue | undefined): value is { doubleValue: number } {

docker/docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,16 @@ services:
5757
- app_network
5858
ports:
5959
- 6379:6379
60+
61+
# otel-collector:
62+
# container_name: otel-collector
63+
# image: otel/opentelemetry-collector-contrib:latest
64+
# restart: always
65+
# command: ["--config", "/etc/otel-collector-config.yaml"]
66+
# volumes:
67+
# - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
68+
# ports:
69+
# - "55680:55680"
70+
# - "55681:55681"
71+
# - "4317:4317" # OTLP gRPC receiver
72+
# - "4318:4318" # OTLP http receiver

docker/otel-collector-config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,11 @@ receivers:
55
endpoint: 0.0.0.0:4317
66
http:
77
endpoint: 0.0.0.0:4318
8-
otlp/internal:
9-
protocols:
10-
http:
11-
endpoint: 0.0.0.0:4319
128

139
processors:
1410
batch:
1511

1612
exporters:
17-
otlphttp/internal:
18-
endpoint: "https://otel.baselime.io/v1/"
19-
headers:
20-
"x-api-key": ${env:BASELIME_API_KEY}
21-
"x-service": ${env:BASELIME_SERVICE}
22-
"x-baselime-dataset": "otel"
2313
logging:
2414
verbosity: normal
2515
otlphttp:
@@ -36,7 +26,3 @@ service:
3626
receivers: [otlp]
3727
processors: [batch]
3828
exporters: [otlphttp]
39-
traces/internal:
40-
receivers: [otlp/internal]
41-
processors: [batch]
42-
exporters: [otlphttp/internal]

0 commit comments

Comments
 (0)