autotel-cli 0.4.2 → 0.6.0
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/index.js +76 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -833,6 +833,71 @@ var datadogAgent = {
|
|
|
833
833
|
]
|
|
834
834
|
};
|
|
835
835
|
|
|
836
|
+
// src/presets/backends/google-cloud.ts
|
|
837
|
+
var googleCloud = {
|
|
838
|
+
name: "Google Cloud",
|
|
839
|
+
slug: "google-cloud",
|
|
840
|
+
type: "backend",
|
|
841
|
+
description: "Send traces to Google Cloud Observability (Cloud Trace) via the Telemetry API with Application Default Credentials",
|
|
842
|
+
protocol: "http",
|
|
843
|
+
exporter: "otlp-http",
|
|
844
|
+
packages: {
|
|
845
|
+
required: [
|
|
846
|
+
"autotel-backends",
|
|
847
|
+
"@opentelemetry/exporter-trace-otlp-http",
|
|
848
|
+
"google-auth-library"
|
|
849
|
+
],
|
|
850
|
+
optional: [
|
|
851
|
+
"@opentelemetry/exporter-metrics-otlp-http",
|
|
852
|
+
"@opentelemetry/sdk-metrics"
|
|
853
|
+
],
|
|
854
|
+
devOnly: []
|
|
855
|
+
},
|
|
856
|
+
env: {
|
|
857
|
+
required: [
|
|
858
|
+
{
|
|
859
|
+
name: "GOOGLE_CLOUD_PROJECT",
|
|
860
|
+
description: "Google Cloud project ID",
|
|
861
|
+
example: "my-project-id",
|
|
862
|
+
sensitive: false
|
|
863
|
+
}
|
|
864
|
+
],
|
|
865
|
+
optional: [
|
|
866
|
+
{
|
|
867
|
+
name: "GOOGLE_APPLICATION_CREDENTIALS",
|
|
868
|
+
description: "Path to service account key JSON (for ADC)",
|
|
869
|
+
example: "/path/to/key.json",
|
|
870
|
+
sensitive: false
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
name: "NODE_ENV",
|
|
874
|
+
description: "Environment (e.g., production, staging)",
|
|
875
|
+
example: "production",
|
|
876
|
+
sensitive: false
|
|
877
|
+
}
|
|
878
|
+
]
|
|
879
|
+
},
|
|
880
|
+
imports: [
|
|
881
|
+
{
|
|
882
|
+
source: "autotel-backends/google-cloud",
|
|
883
|
+
specifiers: ["createGoogleCloudConfig"]
|
|
884
|
+
}
|
|
885
|
+
],
|
|
886
|
+
configBlock: {
|
|
887
|
+
type: "backend",
|
|
888
|
+
code: `...createGoogleCloudConfig({
|
|
889
|
+
projectId: process.env.GOOGLE_CLOUD_PROJECT,
|
|
890
|
+
service: process.env.OTEL_SERVICE_NAME ?? 'my-service',
|
|
891
|
+
}),`,
|
|
892
|
+
section: "BACKEND_CONFIG"
|
|
893
|
+
},
|
|
894
|
+
nextSteps: [
|
|
895
|
+
"Set GOOGLE_CLOUD_PROJECT to your GCP project ID",
|
|
896
|
+
"Configure Application Default Credentials (gcloud auth application-default login or GOOGLE_APPLICATION_CREDENTIALS)",
|
|
897
|
+
"Enable the Telemetry API in your project"
|
|
898
|
+
]
|
|
899
|
+
};
|
|
900
|
+
|
|
836
901
|
// src/presets/backends/honeycomb.ts
|
|
837
902
|
var honeycomb = {
|
|
838
903
|
name: "Honeycomb",
|
|
@@ -1520,6 +1585,7 @@ var edge = {
|
|
|
1520
1585
|
var backends = /* @__PURE__ */ new Map([
|
|
1521
1586
|
["datadog", datadogDirect],
|
|
1522
1587
|
["datadog-agent", datadogAgent],
|
|
1588
|
+
["google-cloud", googleCloud],
|
|
1523
1589
|
["honeycomb", honeycomb],
|
|
1524
1590
|
["otlp-http", otlpHttp],
|
|
1525
1591
|
["otlp-grpc", otlpGrpc],
|
|
@@ -1584,6 +1650,16 @@ var quickPresets = /* @__PURE__ */ new Map([
|
|
|
1584
1650
|
backend: "otlp-http",
|
|
1585
1651
|
autoInstrumentations: "all"
|
|
1586
1652
|
}
|
|
1653
|
+
],
|
|
1654
|
+
[
|
|
1655
|
+
"node-google-cloud",
|
|
1656
|
+
{
|
|
1657
|
+
name: "Node.js + Google Cloud",
|
|
1658
|
+
slug: "node-google-cloud",
|
|
1659
|
+
description: "Node.js with Google Cloud Observability (Telemetry API)",
|
|
1660
|
+
backend: "google-cloud",
|
|
1661
|
+
autoInstrumentations: "all"
|
|
1662
|
+
}
|
|
1587
1663
|
]
|
|
1588
1664
|
]);
|
|
1589
1665
|
function getPreset(type, slug) {
|