@jaypie/constructs 1.2.63 → 1.2.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +23 -8
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +23 -8
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -110,8 +110,8 @@ const CDK$2 = {
|
|
|
110
110
|
SITE: "datadoghq.com",
|
|
111
111
|
LAYER: {
|
|
112
112
|
// https://docs.datadoghq.com/meta/latest-lambda-layer-version.json
|
|
113
|
-
NODE:
|
|
114
|
-
EXTENSION:
|
|
113
|
+
NODE: 139, // 139 on 6/17/2026
|
|
114
|
+
EXTENSION: 97, // 97 on 6/17/2026
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
DEFAULT: {
|
|
@@ -794,6 +794,19 @@ function jaypieLambdaEnv(options = {}) {
|
|
|
794
794
|
environment[envVar] = process.env[envVar];
|
|
795
795
|
}
|
|
796
796
|
});
|
|
797
|
+
// Datadog LLM Observability: pass through DD_LLMOBS_ENABLED if set, and
|
|
798
|
+
// DD_LLMOBS_ML_APP unless observability is explicitly disabled. Explicit
|
|
799
|
+
// initialEnvironment values win over process.env, including for the gate.
|
|
800
|
+
if (process.env.DD_LLMOBS_ENABLED && !environment.DD_LLMOBS_ENABLED) {
|
|
801
|
+
environment.DD_LLMOBS_ENABLED = process.env.DD_LLMOBS_ENABLED;
|
|
802
|
+
}
|
|
803
|
+
const llmObsDisabled = environment.DD_LLMOBS_ENABLED === "false" ||
|
|
804
|
+
environment.DD_LLMOBS_ENABLED === "0";
|
|
805
|
+
if (process.env.DD_LLMOBS_ML_APP &&
|
|
806
|
+
!llmObsDisabled &&
|
|
807
|
+
!environment.DD_LLMOBS_ML_APP) {
|
|
808
|
+
environment.DD_LLMOBS_ML_APP = process.env.DD_LLMOBS_ML_APP;
|
|
809
|
+
}
|
|
797
810
|
return environment;
|
|
798
811
|
}
|
|
799
812
|
|
|
@@ -1145,16 +1158,18 @@ class JaypieEnvSecret extends JaypieSecret {
|
|
|
1145
1158
|
super(scope, idOrEnvKey, props);
|
|
1146
1159
|
}
|
|
1147
1160
|
buildSecret(context) {
|
|
1148
|
-
const { envKey, id
|
|
1161
|
+
const { envKey, id } = context;
|
|
1149
1162
|
const props = context.props;
|
|
1150
1163
|
const { consumer = checkEnvIsConsumer$1(), export: exportParam, generateSecretString, provider = checkEnvIsProvider$1(), removalPolicy, roleTag, vendorTag, value, } = props;
|
|
1151
1164
|
let exportName;
|
|
1152
1165
|
if (!exportParam) {
|
|
1153
|
-
//
|
|
1154
|
-
//
|
|
1155
|
-
//
|
|
1156
|
-
//
|
|
1157
|
-
|
|
1166
|
+
// Always derive the export name from the construct id so the name is
|
|
1167
|
+
// stable across both call forms. For shorthand detection the id carries
|
|
1168
|
+
// the "EnvSecret_" prefix; for the explicit (id, { envKey }) form the id
|
|
1169
|
+
// is the caller's construct id. Deriving from envKey instead would change
|
|
1170
|
+
// the export name for an unchanged explicit-form call site across a
|
|
1171
|
+
// version bump and break existing cross-stack imports (issues #347, #365).
|
|
1172
|
+
const exportSource = id;
|
|
1158
1173
|
exportName = exportEnvName$1(exportSource, process.env, consumer);
|
|
1159
1174
|
}
|
|
1160
1175
|
else {
|