File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -58,4 +58,5 @@ COORDINATOR_SECRET=coordinator-secret # generate the actual secret with `openssl
58
58
# DEPLOY_REGISTRY_HOST=${APP_ORIGIN} # This is the host that the deploy CLI will use to push images to the registry
59
59
# CONTAINER_REGISTRY_ORIGIN=<Container registry origin e.g. https://registry.digitalocean.com>
60
60
# CONTAINER_REGISTRY_USERNAME=<Container registry username e.g. Digital ocean email address>
61
- # CONTAINER_REGISTRY_PASSWORD=<Container registry password e.g. Digital ocean PAT>
61
+ # CONTAINER_REGISTRY_PASSWORD=<Container registry password e.g. Digital ocean PAT>
62
+ # DEV_OTEL_EXPORTER_OTLP_ENDPOINT="http://0.0.0.0:4318"
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ const EnvironmentSchema = z.object({
82
82
CONTAINER_REGISTRY_USERNAME : z . string ( ) . optional ( ) ,
83
83
CONTAINER_REGISTRY_PASSWORD : z . string ( ) . optional ( ) ,
84
84
DEPLOY_REGISTRY_HOST : z . string ( ) . optional ( ) ,
85
+ DEV_OTEL_EXPORTER_OTLP_ENDPOINT : z . string ( ) . optional ( ) ,
85
86
} ) ;
86
87
87
88
export type Environment = z . infer < typeof EnvironmentSchema > ;
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function parseSecretKey(key: string) {
30
30
const SecretValue = z . object ( { secret : z . string ( ) } ) ;
31
31
32
32
export class EnvironmentVariablesRepository implements Repository {
33
- constructor ( private prismaClient : PrismaClient = prisma ) { }
33
+ constructor ( private prismaClient : PrismaClient = prisma ) { }
34
34
35
35
async create (
36
36
projectId : string ,
@@ -415,7 +415,12 @@ export class EnvironmentVariablesRepository implements Repository {
415
415
}
416
416
417
417
if ( environment . type === "DEVELOPMENT" ) {
418
- return [ ] ;
418
+ return [
419
+ {
420
+ key : "OTEL_EXPORTER_OTLP_ENDPOINT" ,
421
+ value : env . DEV_OTEL_EXPORTER_OTLP_ENDPOINT ?? env . APP_ORIGIN ,
422
+ }
423
+ ] ;
419
424
}
420
425
421
426
return [
You can’t perform that action at this time.
0 commit comments