@heroku/plugin-compute 0.2.0 → 0.3.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/lib/commands/compute/display/telemetry-drain.d.ts +26 -0
- package/lib/commands/compute/display/telemetry-drain.js +77 -0
- package/lib/commands/compute/display/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/{config/get.d.ts → get/config.d.ts} +2 -0
- package/lib/commands/compute/{config/get.js → get/config.js} +9 -2
- package/lib/commands/compute/get/config.js.map +1 -0
- package/lib/commands/compute/{config/list.d.ts → list/config.d.ts} +2 -0
- package/lib/commands/compute/{config/list.js → list/config.js} +9 -2
- package/lib/commands/compute/list/config.js.map +1 -0
- package/lib/commands/compute/list/telemetry-drain.d.ts +20 -0
- package/lib/commands/compute/list/telemetry-drain.js +89 -0
- package/lib/commands/compute/list/telemetry-drain.js.map +1 -0
- package/lib/commands/compute/{config/set.d.ts → set/config.d.ts} +2 -0
- package/lib/commands/compute/{config/set.js → set/config.js} +9 -2
- package/lib/commands/compute/set/config.js.map +1 -0
- package/lib/commands/compute/{config/unset.d.ts → unset/config.d.ts} +2 -0
- package/lib/commands/compute/{config/unset.js → unset/config.js} +9 -2
- package/lib/commands/compute/unset/config.js.map +1 -0
- package/lib/shared/computeConfig.js +2 -2
- package/lib/shared/computeConfig.js.map +1 -1
- package/lib/shared/computeQuery.d.ts +1 -0
- package/lib/shared/computeQuery.js +37 -42
- package/lib/shared/computeQuery.js.map +1 -1
- package/lib/shared/computeTelemetryDrain.d.ts +11 -0
- package/lib/shared/computeTelemetryDrain.js +86 -0
- package/lib/shared/computeTelemetryDrain.js.map +1 -0
- package/lib/shared/herokuProxyApi.d.ts +30 -0
- package/lib/shared/herokuProxyApi.js +102 -2
- package/lib/shared/herokuProxyApi.js.map +1 -1
- package/messages/compute.display.telemetry-drain.md +19 -0
- package/messages/compute.errors.md +35 -1
- package/messages/{compute.config.list.md → compute.list.config.md} +3 -3
- package/messages/compute.list.telemetry-drain.md +26 -0
- package/npm-shrinkwrap.json +258 -116
- package/oclif.manifest.json +289 -139
- package/package.json +10 -4
- package/schemas/compute-display-telemetry__drain.json +54 -0
- package/schemas/compute-list-telemetry__drain.json +43 -0
- package/lib/commands/compute/config/get.js.map +0 -1
- package/lib/commands/compute/config/list.js.map +0 -1
- package/lib/commands/compute/config/set.js.map +0 -1
- package/lib/commands/compute/config/unset.js.map +0 -1
- /package/messages/{compute.config.get.md → compute.get.config.md} +0 -0
- /package/messages/{compute.config.set.md → compute.set.config.md} +0 -0
- /package/messages/{compute.config.unset.md → compute.unset.config.md} +0 -0
- /package/schemas/{compute-config-get.json → compute-get-config.json} +0 -0
- /package/schemas/{compute-config-list.json → compute-list-config.json} +0 -0
- /package/schemas/{compute-config-set.json → compute-set-config.json} +0 -0
- /package/schemas/{compute-config-unset.json → compute-unset-config.json} +0 -0
|
@@ -22,13 +22,14 @@ const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.errors');
|
|
|
22
22
|
// the internal org/connection module), so match the stable error names it throws by value.
|
|
23
23
|
const SINGLE_RECORD_QUERY_NO_RECORDS = 'SingleRecordQuery_NoRecords';
|
|
24
24
|
const SINGLE_RECORD_QUERY_MULTIPLE_RECORDS = 'SingleRecordQuery_MultipleRecords';
|
|
25
|
-
const
|
|
25
|
+
const SOQL_FIELDS = [
|
|
26
26
|
'Id',
|
|
27
27
|
'DeveloperName',
|
|
28
28
|
'MasterLabel',
|
|
29
29
|
'Description',
|
|
30
30
|
'Status',
|
|
31
31
|
'StatusReason',
|
|
32
|
+
'ExternalAppIdentifier',
|
|
32
33
|
'CurrentBuild.Id',
|
|
33
34
|
'CurrentBuild.BuildStatus',
|
|
34
35
|
'CurrentBuild.BuildStartedAt',
|
|
@@ -36,58 +37,33 @@ const BASE_SOQL_FIELDS = [
|
|
|
36
37
|
'CurrentBuild.DeployedAt',
|
|
37
38
|
'CurrentBuild.DeployedBy.Username',
|
|
38
39
|
'CurrentBuild.Error',
|
|
40
|
+
'CurrentBuild.ExternalBuildIdentifier',
|
|
39
41
|
'ExternalServiceRegistration.Id',
|
|
40
|
-
];
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
44
|
-
//
|
|
45
|
-
//
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
// Defense-in-depth for the SOQL string interpolations in queryComputeApp/listComputeApps below --
|
|
53
|
-
// parseName's regexes already reject the characters SOQL string literals need escaped, so this
|
|
54
|
-
// should never actually fire, but it keeps a future NAME_PATTERN/NAMESPACE_PATTERN change from
|
|
55
|
-
// silently reopening injection.
|
|
42
|
+
].join(', ');
|
|
43
|
+
// A Heroku app id as it appears in a telemetry drain's owner.id -- hex/alphanumeric and hyphens,
|
|
44
|
+
// never quotes, spaces, or backslashes. It's Heroku-sourced (not user-typed) and never routed
|
|
45
|
+
// through parseName, so this is the primary injection guard for findDeveloperNameByHerokuAppId's
|
|
46
|
+
// interpolation (escapeSoqlLiteral is the belt-and-suspenders second layer, matching
|
|
47
|
+
// queryComputeApp's posture below).
|
|
48
|
+
const HEROKU_APP_ID_PATTERN = /^[A-Za-z0-9\-]+$/v;
|
|
49
|
+
// Defense-in-depth for the SOQL string interpolations in queryComputeApp and
|
|
50
|
+
// findDeveloperNameByHerokuAppId below -- the shape guards there (parseName's regexes,
|
|
51
|
+
// HEROKU_APP_ID_PATTERN) already reject the characters a SOQL string literal needs escaped, so this
|
|
52
|
+
// should never actually fire, but it keeps a future loosening of either guard from silently
|
|
53
|
+
// reopening injection.
|
|
56
54
|
function escapeSoqlLiteral(value) {
|
|
57
55
|
return value.replaceAll('\\', '\\\\').replaceAll('\'', String.raw `\'`);
|
|
58
56
|
}
|
|
59
|
-
// Internal engineering workaround, not a customer-facing feature -- do not document in README.
|
|
60
|
-
// PlatformComputeApp/PlatformComputeAppBuild currently ship with
|
|
61
|
-
// Tooling API access gated behind apiAccess="isSfdcInternal" (W-23426078 opened first-party-only
|
|
62
|
-
// access; W-24176390 tracks removing the restriction so any customer org can query these entities
|
|
63
|
-
// without this workaround). Until W-24176390 ships, this lets internal testing exercise the CLI's
|
|
64
|
-
// Tooling queries against a pilot org: jsforce's http-api sets the Sforce-Call-Options header from
|
|
65
|
-
// connection._callOptions on every REST request (incl. Tooling API query); this sets the
|
|
66
|
-
// SfdcInternalQA/ client identifier, which requires the target org's "Allow Salesforce Internal
|
|
67
|
-
// QA Clients" (SfdcInternalQAClients) org perm to be enabled. Gated behind
|
|
68
|
-
// SALESFORCE_INTERNAL_QA_CLIENT=true (opt-in, never silently applied). Note this does NOT unblock
|
|
69
|
-
// ExternalServiceRegistration.IsActive, which has its own separate field-level restriction --
|
|
70
|
-
// see the comment on ComputeAppRecord.ExternalServiceRegistration.IsActive above.
|
|
71
|
-
// Remove this function and its call sites once W-24176390 ships and public access is confirmed.
|
|
72
|
-
function setSfdcInternalQaCallOptions(connection) {
|
|
73
|
-
if (process.env.SALESFORCE_INTERNAL_QA_CLIENT !== 'true') {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
connection._callOptions = {
|
|
77
|
-
client: 'SfdcInternalQA/plugin-compute',
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
57
|
// Accepts a bare DeveloperName or a namespace-qualified <namespace>__<developerName> value; the
|
|
81
58
|
// latter adds a Namespace filter so it only matches an app deployed under that namespace, since
|
|
82
59
|
// DeveloperName alone isn't unique across namespaces.
|
|
83
60
|
export async function queryComputeApp(connection, name) {
|
|
84
|
-
setSfdcInternalQaCallOptions(connection);
|
|
85
61
|
// parseName's NAME_PATTERN/NAMESPACE_PATTERN (letters/digits/underscore, anchored, no quotes or
|
|
86
62
|
// spaces) are the injection guard for the two interpolations below -- escapeSoqlLiteral is
|
|
87
63
|
// belt-and-suspenders in case either pattern is ever loosened, not the primary defense.
|
|
88
64
|
const { namespace, developerName } = parseName(name);
|
|
89
65
|
const namespaceFilter = namespace === undefined ? '' : ` AND Namespace = '${escapeSoqlLiteral(namespace)}'`;
|
|
90
|
-
const soql = `SELECT ${
|
|
66
|
+
const soql = `SELECT ${SOQL_FIELDS} FROM PlatformComputeApp WHERE DeveloperName = '${escapeSoqlLiteral(developerName)}'${namespaceFilter}`;
|
|
91
67
|
try {
|
|
92
68
|
return await connection.singleRecordQuery(soql, { tooling: true });
|
|
93
69
|
}
|
|
@@ -104,8 +80,7 @@ export async function queryComputeApp(connection, name) {
|
|
|
104
80
|
// No --name filter -- lists every PlatformComputeApp in the org. autoFetchQuery auto-paginates
|
|
105
81
|
// (10,000-record default fetch size), which comfortably covers any realistic org's compute-app count.
|
|
106
82
|
export async function listComputeApps(connection) {
|
|
107
|
-
|
|
108
|
-
const soql = `SELECT ${soqlFields()} FROM PlatformComputeApp ORDER BY DeveloperName ASC`;
|
|
83
|
+
const soql = `SELECT ${SOQL_FIELDS} FROM PlatformComputeApp ORDER BY DeveloperName ASC`;
|
|
109
84
|
try {
|
|
110
85
|
// autoFetchQuery's type param is bounded to jsforce's Schema (org-wide SObject map), not the
|
|
111
86
|
// record shape -- there's no way to type this call against ComputeAppRecord directly.
|
|
@@ -139,6 +114,26 @@ export async function resolveHerokuAppId(connection, name) {
|
|
|
139
114
|
const record = await queryComputeApp(connection, name);
|
|
140
115
|
return requireHerokuAppId(record, name);
|
|
141
116
|
}
|
|
117
|
+
// Reverse of resolveHerokuAppId: given a Heroku app id (as it appears in a telemetry drain's
|
|
118
|
+
// owner.id), find the owning compute app's Salesforce DeveloperName -- the only identity the rest
|
|
119
|
+
// of the CLI accepts (--name/COMPUTE_APP_NAME). Best-effort for a display label: returns undefined
|
|
120
|
+
// (never throws) when the id is malformed, matches no app, matches more than one, or the query
|
|
121
|
+
// itself fails, so a label lookup can never turn a read command fatal. Filters ExternalAppIdentifier
|
|
122
|
+
// directly rather than scanning every app.
|
|
123
|
+
export async function findDeveloperNameByHerokuAppId(connection, herokuAppId) {
|
|
124
|
+
if (!HEROKU_APP_ID_PATTERN.test(herokuAppId)) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
const soql = `SELECT DeveloperName FROM PlatformComputeApp WHERE ExternalAppIdentifier = '${escapeSoqlLiteral(herokuAppId)}'`;
|
|
128
|
+
try {
|
|
129
|
+
const record = await connection.singleRecordQuery(soql, { tooling: true });
|
|
130
|
+
return record.DeveloperName;
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
// No match, more than one match, or a query failure -- all non-fatal for a best-effort label.
|
|
134
|
+
return undefined;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
142
137
|
// Heroku-side runtime metadata (dyno type, web process/formation count) isn't included here --
|
|
143
138
|
// there's no confirmed Salesforce-queryable source for it yet. Open item, not yet resolved.
|
|
144
139
|
export function toComputeAppSummary(record) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeQuery.js","sourceRoot":"","sources":["../../src/shared/computeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAkB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAE3D,OAAO,EAAC,SAAS,EAAC,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;AAEtE,8FAA8F;AAC9F,2FAA2F;AAC3F,MAAM,8BAA8B,GAAG,6BAA6B,CAAC;AACrE,MAAM,oCAAoC,GAAG,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"computeQuery.js","sourceRoot":"","sources":["../../src/shared/computeQuery.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAkB,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAE3D,OAA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AAC,YAAY,CAAC,cAAc,IAAI,SAAS;gBAC/D,gBAAgB,EAAE,MAAM,CAAC,YAAY,CAAC,gBAAgB,IAAI,SAAS;gBACnE,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,IAAI,SAAS;gBACvD,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ;gBACpD,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,IAAI,SAAS;aAC9C;YACD,CAAC,CAAC,SAAS;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { components } from '../generated/heroku-platform-api.js';
|
|
2
|
+
import type { TelemetryExporterType, TelemetrySignal } from './herokuProxyApi.js';
|
|
3
|
+
export declare const TELEMETRY_SIGNALS: readonly TelemetrySignal[];
|
|
4
|
+
export declare const TELEMETRY_TRANSPORTS: readonly string[];
|
|
5
|
+
export declare function validateAndFormatSignals(input: string): TelemetrySignal[];
|
|
6
|
+
export declare function exporterTypeForTransport(transport: string): TelemetryExporterType;
|
|
7
|
+
export declare function transportLabelForExporterType(exporterType: string): string;
|
|
8
|
+
export declare function formatTelemetryDrainRows(drain: components['schemas']['TelemetryDrain'], appName: string): Array<{
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2026, Salesforce, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { PLUGIN_NAME } from './plugin-name.js';
|
|
18
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
19
|
+
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.errors');
|
|
20
|
+
// Placeholder for a drain field the platform left unset -- matches the dash the other compute
|
|
21
|
+
// tables use so single-drain display reads consistently.
|
|
22
|
+
const DASH = '-';
|
|
23
|
+
// Exporter header values routinely carry credentials (bearer / Splunk-HEC tokens). The human table
|
|
24
|
+
// masks the VALUES (keys stay visible so an operator can still see which headers are set) so a secret
|
|
25
|
+
// can't leak into terminal scrollback, screen-shares, or screenshots. The machine-readable --json
|
|
26
|
+
// result keeps them verbatim -- same trust boundary as the authenticated caller (see
|
|
27
|
+
// display/telemetry-drain.ts). Masks a copy; never mutates the caller's drain object.
|
|
28
|
+
const REDACTED = '<redacted>';
|
|
29
|
+
function maskHeaderValues(headers) {
|
|
30
|
+
return Object.fromEntries(Object.keys(headers).map(key => [key, REDACTED]));
|
|
31
|
+
}
|
|
32
|
+
// The three OpenTelemetry signal categories a drain can forward. Order matches the
|
|
33
|
+
// TelemetryDrain.signals enum in the platform API spec; `all` is the shorthand for every one.
|
|
34
|
+
export const TELEMETRY_SIGNALS = ['traces', 'metrics', 'logs'];
|
|
35
|
+
// User-facing --transport values and the exporter type each one maps to. `grpc`/`http` are the two
|
|
36
|
+
// OTLP wire protocols; `splunk` is its own exporter. Reversed for display by
|
|
37
|
+
// transportLabelForExporterType below.
|
|
38
|
+
const TRANSPORT_TO_EXPORTER = {
|
|
39
|
+
grpc: 'otlp',
|
|
40
|
+
http: 'otlphttp',
|
|
41
|
+
splunk: 'splunk',
|
|
42
|
+
};
|
|
43
|
+
export const TELEMETRY_TRANSPORTS = Object.keys(TRANSPORT_TO_EXPORTER);
|
|
44
|
+
// DELIBERATELY case-sensitive, non-trimming, and treats `all` only as the whole input (never as a
|
|
45
|
+
// comma-separated element). This is an explicit decision, not an oversight: the plugin is pre-GA and
|
|
46
|
+
// no command consumes this yet, so staying strict now is the safe direction -- leniency (trimming,
|
|
47
|
+
// case-insensitivity) can be loosened later without breaking anyone, whereas tightening after GA
|
|
48
|
+
// would break users. The companion unit tests lock each quirk (`Traces`/` traces`/`all,logs` all throw).
|
|
49
|
+
export function validateAndFormatSignals(input) {
|
|
50
|
+
if (input === 'all') {
|
|
51
|
+
return [...TELEMETRY_SIGNALS];
|
|
52
|
+
}
|
|
53
|
+
const requested = input.split(',');
|
|
54
|
+
const invalid = requested.filter(signal => !TELEMETRY_SIGNALS.includes(signal));
|
|
55
|
+
if (invalid.length > 0) {
|
|
56
|
+
throw messages.createError('error.invalidSignal', [invalid.join(', '), [...TELEMETRY_SIGNALS, 'all'].join(', ')]);
|
|
57
|
+
}
|
|
58
|
+
return requested;
|
|
59
|
+
}
|
|
60
|
+
// Maps a user-facing --transport onto its exporter type. Same strictness as signals above
|
|
61
|
+
// (exact-match, no trim/case-fold); an unknown transport throws rather than silently defaulting.
|
|
62
|
+
export function exporterTypeForTransport(transport) {
|
|
63
|
+
if (!Object.hasOwn(TRANSPORT_TO_EXPORTER, transport)) {
|
|
64
|
+
throw messages.createError('error.invalidTransport', [transport, TELEMETRY_TRANSPORTS.join(', ')]);
|
|
65
|
+
}
|
|
66
|
+
return TRANSPORT_TO_EXPORTER[transport];
|
|
67
|
+
}
|
|
68
|
+
// Display label for an exporter type: only `otlp` is gRPC; `otlphttp` and `splunk` both ride HTTP.
|
|
69
|
+
export function transportLabelForExporterType(exporterType) {
|
|
70
|
+
return exporterType === 'otlp' ? 'gRPC' : 'HTTP';
|
|
71
|
+
}
|
|
72
|
+
// Builds the ordered key/value rows for a single-drain display. App-only: the app name is passed in
|
|
73
|
+
// (already resolved by the command from the drain's own owner -- see display/telemetry-drain.ts), not
|
|
74
|
+
// re-derived here, since this foundation never looks owners up. `compute display telemetry-drain` renders these rows.
|
|
75
|
+
export function formatTelemetryDrainRows(drain, appName) {
|
|
76
|
+
const headers = drain.exporter?.headers;
|
|
77
|
+
const hasHeaders = headers !== undefined && Object.keys(headers).length > 0;
|
|
78
|
+
return [
|
|
79
|
+
{ key: 'App', value: appName },
|
|
80
|
+
{ key: 'Signals', value: drain.signals && drain.signals.length > 0 ? drain.signals.join(', ') : DASH },
|
|
81
|
+
{ key: 'Endpoint', value: drain.exporter?.endpoint ?? DASH },
|
|
82
|
+
{ key: 'Transport', value: drain.exporter?.type ? transportLabelForExporterType(drain.exporter.type) : DASH },
|
|
83
|
+
{ key: 'Headers', value: hasHeaders ? JSON.stringify(maskHeaderValues(headers)) : DASH },
|
|
84
|
+
];
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=computeTelemetryDrain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"computeTelemetryDrain.js","sourceRoot":"","sources":["../../src/shared/computeTelemetryDrain.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAK1C,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;AAEtE,8FAA8F;AAC9F,yDAAyD;AACzD,MAAM,IAAI,GAAG,GAAG,CAAC;AAEjB,mGAAmG;AACnG,sGAAsG;AACtG,kGAAkG;AAClG,qFAAqF;AACrF,sFAAsF;AACtF,MAAM,QAAQ,GAAG,YAAY,CAAC;AAE9B,SAAS,gBAAgB,CAAC,OAA+B;IACvD,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,C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AAI,EAAC;QAC3G,EAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAC;KACvF,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Connection } from '@salesforce/core';
|
|
2
|
+
import type { components } from '../generated/heroku-platform-api.js';
|
|
2
3
|
export declare class HerokuProxyError extends Error {
|
|
3
4
|
readonly herokuErrorId?: string;
|
|
4
5
|
readonly origin: 'heroku' | 'proxy';
|
|
@@ -60,3 +61,32 @@ export declare function fetchLatestBuildOutputStreamUrlViaProxy(connection: Conn
|
|
|
60
61
|
appId: string;
|
|
61
62
|
name: string;
|
|
62
63
|
}): Promise<string | undefined>;
|
|
64
|
+
export type TelemetryExporterType = components['schemas']['TelemetryDrainCreateRequest']['exporter']['type'];
|
|
65
|
+
export type TelemetrySignal = components['schemas']['TelemetryDrainCreateRequest']['signals'][number];
|
|
66
|
+
export declare function listTelemetryDrainsViaProxy(connection: Connection, params: {
|
|
67
|
+
appId: string;
|
|
68
|
+
name: string;
|
|
69
|
+
}): Promise<Array<components['schemas']['TelemetryDrain']>>;
|
|
70
|
+
export declare function fetchTelemetryDrainViaProxy(connection: Connection, params: {
|
|
71
|
+
drainId: string;
|
|
72
|
+
}): Promise<components['schemas']['TelemetryDrain']>;
|
|
73
|
+
export declare function createTelemetryDrainViaProxy(connection: Connection, params: {
|
|
74
|
+
appId: string;
|
|
75
|
+
endpoint: string;
|
|
76
|
+
exporterType: TelemetryExporterType;
|
|
77
|
+
headers?: Record<string, string>;
|
|
78
|
+
name: string;
|
|
79
|
+
signals: TelemetrySignal[];
|
|
80
|
+
}): Promise<components['schemas']['TelemetryDrain']>;
|
|
81
|
+
export declare function updateTelemetryDrainViaProxy(connection: Connection, params: {
|
|
82
|
+
drainId: string;
|
|
83
|
+
exporter?: {
|
|
84
|
+
endpoint?: string;
|
|
85
|
+
headers?: Record<string, string>;
|
|
86
|
+
type?: TelemetryExporterType;
|
|
87
|
+
};
|
|
88
|
+
signals?: TelemetrySignal[];
|
|
89
|
+
}): Promise<components['schemas']['TelemetryDrain']>;
|
|
90
|
+
export declare function deleteTelemetryDrainViaProxy(connection: Connection, params: {
|
|
91
|
+
drainId: string;
|
|
92
|
+
}): Promise<components['schemas']['TelemetryDrain']>;
|
|
@@ -20,6 +20,11 @@ Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
|
20
20
|
const messages = Messages.loadMessages(PLUGIN_NAME, 'compute.errors');
|
|
21
21
|
const HEROKU_API_BASE_URL = 'https://api.heroku.com';
|
|
22
22
|
const HEROKU_ACCEPT_HEADER = 'application/vnd.heroku+json; version=3';
|
|
23
|
+
// Heroku's telemetry-drains endpoints are only exposed under the `3.sdk` Accept variant -- the plain
|
|
24
|
+
// `version=3` media type 406s them. Scoped to the telemetry functions below via a per-call header
|
|
25
|
+
// override (see listTelemetryDrainsViaProxy et al.); promoting it to the module default would wrongly
|
|
26
|
+
// change the Accept for every other (App/Formation/ConfigVars/Release/Build/LogSession) call.
|
|
27
|
+
const HEROKU_ACCEPT_HEADER_SDK = 'application/vnd.heroku+json; version=3.sdk';
|
|
23
28
|
// Distinguishes the two error shapes the /services/data/vXX.0/connect/compute/proxy endpoint can return,
|
|
24
29
|
// without forcing every caller to re-derive which one it got:
|
|
25
30
|
// - 'proxy': the proxy itself rejected the request (bad proxy_url, 502 on the 25 MiB response
|
|
@@ -87,14 +92,25 @@ async function herokuProxyRequest(connection, opts) {
|
|
|
87
92
|
}
|
|
88
93
|
// notFoundMessage lets a caller override the not_found classification with a more specific error
|
|
89
94
|
// (e.g. scaleComputeFormationViaProxy's "no such process type" instead of "no such app") without
|
|
90
|
-
// duplicating the origin/herokuErrorId checks at each call site.
|
|
95
|
+
// duplicating the origin/herokuErrorId checks at each call site. `name` feeds ONLY the default
|
|
96
|
+
// not_found message; callers that always pass a notFoundMessage override (the drain-id telemetry
|
|
97
|
+
// functions, which have no app name in scope) pass `undefined` for it.
|
|
91
98
|
function throwHerokuProxyComputeError(err, name, notFoundMessage) {
|
|
92
99
|
if (err instanceof HerokuProxyError && err.origin === 'heroku' && err.herokuErrorId === 'not_found') {
|
|
93
|
-
throw notFoundMessage ?? messages.createError('error.herokuAppNotFound', [name]);
|
|
100
|
+
throw notFoundMessage ?? messages.createError('error.herokuAppNotFound', [name ?? '']);
|
|
94
101
|
}
|
|
95
102
|
if (err instanceof HerokuProxyError && err.origin === 'proxy') {
|
|
96
103
|
throw messages.createError('error.herokuProxyRequestFailed', [err.message]);
|
|
97
104
|
}
|
|
105
|
+
// A Heroku-origin error that carries Heroku's own machine-readable id (herokuErrorId defined, e.g.
|
|
106
|
+
// 'invalid_params' on a 422 -- the most common create/update failure: a bad endpoint URL or a
|
|
107
|
+
// rejected signal/exporter combination) is a request Heroku *received and rejected*, so surface
|
|
108
|
+
// Heroku's own message as a rejection. A heroku-origin error WITHOUT an id (herokuErrorId
|
|
109
|
+
// undefined -- a connectivity/parse failure with no structured Heroku body, e.g. a socket error)
|
|
110
|
+
// falls through to the connectivity-flavored herokuApiRequestFailed below, which is accurate for it.
|
|
111
|
+
if (err instanceof HerokuProxyError && err.origin === 'heroku' && err.herokuErrorId !== undefined) {
|
|
112
|
+
throw messages.createError('error.herokuRequestRejected', [err.message]);
|
|
113
|
+
}
|
|
98
114
|
throw messages.createError('error.herokuApiRequestFailed', [err instanceof Error ? err.message : String(err)]);
|
|
99
115
|
}
|
|
100
116
|
export async function fetchComputeAppViaProxy(connection, params) {
|
|
@@ -240,4 +256,88 @@ export async function fetchLatestBuildOutputStreamUrlViaProxy(connection, params
|
|
|
240
256
|
throwHerokuProxyComputeError(error, params.name);
|
|
241
257
|
}
|
|
242
258
|
}
|
|
259
|
+
// The five telemetry-drain functions below back the follow-up `sf compute telemetry-drain` subcommand
|
|
260
|
+
// WIs; they ship now as the shared foundation. Each returns the raw generated TelemetryDrain wire type
|
|
261
|
+
// (no plugin-side summary) -- presentation lives in computeTelemetryDrain.ts (formatTelemetryDrainRows),
|
|
262
|
+
// mirroring the config-vars split rather than the formation one. All pass HEROKU_ACCEPT_HEADER_SDK.
|
|
263
|
+
//
|
|
264
|
+
// Runtime dependency (not enforceable here): /apps/{id}/telemetry-drains and /telemetry-drains[/{id}]
|
|
265
|
+
// must be on the Salesforce Connect proxy allow-list, or every call below 502s as a HEROKU_PROXY_ERROR.
|
|
266
|
+
export async function listTelemetryDrainsViaProxy(connection, params) {
|
|
267
|
+
try {
|
|
268
|
+
return await herokuProxyRequest(connection, {
|
|
269
|
+
method: 'GET',
|
|
270
|
+
path: '/apps/{app_id_or_name}/telemetry-drains',
|
|
271
|
+
params: { app_id_or_name: params.appId },
|
|
272
|
+
headers: { Accept: HEROKU_ACCEPT_HEADER_SDK },
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
catch (error) {
|
|
276
|
+
throwHerokuProxyComputeError(error, params.name);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
export async function fetchTelemetryDrainViaProxy(connection, params) {
|
|
280
|
+
try {
|
|
281
|
+
return await herokuProxyRequest(connection, {
|
|
282
|
+
method: 'GET',
|
|
283
|
+
path: '/telemetry-drains/{telemetry_drain_id}',
|
|
284
|
+
params: { telemetry_drain_id: params.drainId },
|
|
285
|
+
headers: { Accept: HEROKU_ACCEPT_HEADER_SDK },
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
catch (error) {
|
|
289
|
+
// A 404 on a drain-id path means the drain wasn't found, so always override the default
|
|
290
|
+
// app-not-found classification with a drain-specific message (no app name is in scope here).
|
|
291
|
+
throwHerokuProxyComputeError(error, undefined, messages.createError('error.telemetryDrainNotFound', [params.drainId]));
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
export async function createTelemetryDrainViaProxy(connection, params) {
|
|
295
|
+
try {
|
|
296
|
+
return await herokuProxyRequest(connection, {
|
|
297
|
+
method: 'POST',
|
|
298
|
+
path: '/telemetry-drains',
|
|
299
|
+
body: {
|
|
300
|
+
owner: { id: params.appId, type: 'app' },
|
|
301
|
+
signals: params.signals,
|
|
302
|
+
exporter: { type: params.exporterType, endpoint: params.endpoint, headers: params.headers },
|
|
303
|
+
},
|
|
304
|
+
headers: { Accept: HEROKU_ACCEPT_HEADER_SDK },
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
catch (error) {
|
|
308
|
+
throwHerokuProxyComputeError(error, params.name);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
export async function updateTelemetryDrainViaProxy(connection, params) {
|
|
312
|
+
try {
|
|
313
|
+
return await herokuProxyRequest(connection, {
|
|
314
|
+
method: 'PATCH',
|
|
315
|
+
path: '/telemetry-drains/{telemetry_drain_id}',
|
|
316
|
+
params: { telemetry_drain_id: params.drainId },
|
|
317
|
+
body: {
|
|
318
|
+
signals: params.signals,
|
|
319
|
+
exporter: params.exporter,
|
|
320
|
+
},
|
|
321
|
+
headers: { Accept: HEROKU_ACCEPT_HEADER_SDK },
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
catch (error) {
|
|
325
|
+
throwHerokuProxyComputeError(error, undefined, messages.createError('error.telemetryDrainNotFound', [params.drainId]));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
// Heroku's DELETE returns the deleted drain's representation, so this resolves to it (callers can
|
|
329
|
+
// confirm what was removed) rather than void.
|
|
330
|
+
export async function deleteTelemetryDrainViaProxy(connection, params) {
|
|
331
|
+
try {
|
|
332
|
+
return await herokuProxyRequest(connection, {
|
|
333
|
+
method: 'DELETE',
|
|
334
|
+
path: '/telemetry-drains/{telemetry_drain_id}',
|
|
335
|
+
params: { telemetry_drain_id: params.drainId },
|
|
336
|
+
headers: { Accept: HEROKU_ACCEPT_HEADER_SDK },
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
catch (error) {
|
|
340
|
+
throwHerokuProxyComputeError(error, undefined, messages.createError('error.telemetryDrainNotFound', [params.drainId]));
|
|
341
|
+
}
|
|
342
|
+
}
|
|
243
343
|
//# sourceMappingURL=herokuProxyApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"herokuProxyApi.js","sourceRoot":"","sources":["../../src/shared/herokuProxyApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAkB,QAAQ,EAAe,MAAM,kBAAkB,CAAC;AAIzE,OAAO,EAAC,wBAAwB,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;AAEtE,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,oBAAoB,GAAG,wCAAwC,CAAC;AAEtE,yGAAyG;AACzG,8DAA8D;AAC9D,8FAA8F;AAC9F,8EAA8E;AAC9E,iGAAiG;AACjG,gGAAgG;AAChG,6FAA6F;AAC7F,kBAAkB;AAClB,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IACzC,gGAAgG;IAChG,2DAA2D;IAC3C,aAAa,CAAU;IACvB,MAAM,CAAqB;IAE3C,YAAmB,OAAe,EAAE,MAA0B,EAAE,aAAsB;QACpF,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACrC,CAAC;CACF;AAED,0FAA0F;AAC1F,iGAAiG;AACjG,sFAAsF;AACtF,gFAAgF;AAChF,4CAA4C;AAC5C,0FAA0F;AAC1F,gGAAgG;AAChG,iDAAiD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,CAAC,OAAO,EAAC;YAC5C,IAAI,EAAE;gBACJ,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aACqC;YAChE,OAAO,EAAE,EAAC,MAAM,EAAE,wBAAwB,EAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,4BAA4B,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,8BAA8B,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzH,CAAC;AACH,CAAC;AAED,kGAAkG;AAClG,8CAA8C;AAC9C,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,UAAsB,EACtB,MAAyB;IAEzB,IAAI,CAAC;QACH,OAAO,MAAM,kBAAkB,CAA0C,UAAU,EAAE;YACnF,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,wCAAwC;YAC9C,MAAM,EAAE,EAAC,kBAAkB,EAAE,MAAM,CAAC,OAAO,EAAC;YAC5C,OAAO,EAAE,EAAC,MAAM,EAAE,wBAAwB,EAAC;SAC5C,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,4BAA4B,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,WAAW,CAAC,8BAA8B,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IACzH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
Show the full detail of a single compute telemetry drain.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Shows a single OpenTelemetry drain in full: the compute app it belongs to,
|
|
8
|
+
the signals it forwards, and its exporter endpoint, transport, and headers.
|
|
9
|
+
Use sf compute list telemetry-drain to find a drain's ID.
|
|
10
|
+
|
|
11
|
+
# args.id.summary
|
|
12
|
+
|
|
13
|
+
ID of the telemetry drain to show.
|
|
14
|
+
|
|
15
|
+
# examples
|
|
16
|
+
|
|
17
|
+
- Show the detail of a telemetry drain by its ID:
|
|
18
|
+
|
|
19
|
+
<%= config.bin %> <%= command.id %> 01234567-89ab-cdef-0123-456789abcdef --target-org my-org
|
|
@@ -104,6 +104,16 @@ The Salesforce Heroku API proxy rejected the request: %s
|
|
|
104
104
|
- Confirm the target org supports the Heroku API proxy (API version 68.0 or later).
|
|
105
105
|
- Run the command again; if it still fails, check Setup for outstanding compute app errors.
|
|
106
106
|
|
|
107
|
+
# error.herokuRequestRejected
|
|
108
|
+
|
|
109
|
+
Heroku rejected the request: %s
|
|
110
|
+
|
|
111
|
+
# error.herokuRequestRejected.actions
|
|
112
|
+
|
|
113
|
+
- Read the detail above for exactly what Heroku reported.
|
|
114
|
+
- If it names an invalid value (for example an endpoint URL or a signal/exporter combination), fix it and run the command again.
|
|
115
|
+
- If it points to a temporary problem or a permissions issue, retry in a moment or confirm you have the required access, then run the command again.
|
|
116
|
+
|
|
107
117
|
# error.herokuFormationNotFound
|
|
108
118
|
|
|
109
119
|
Heroku didn't find app %s or its %s process type.
|
|
@@ -128,7 +138,7 @@ Compute app %s doesn't have a Heroku app identifier yet.
|
|
|
128
138
|
|
|
129
139
|
# error.configVarNotFound.actions
|
|
130
140
|
|
|
131
|
-
- Run sf compute config
|
|
141
|
+
- Run sf compute list config --name <name> --target-org <org> to see the app's current config vars.
|
|
132
142
|
|
|
133
143
|
# error.metadataRetrieveFailed
|
|
134
144
|
|
|
@@ -180,3 +190,27 @@ The %s starter source download is invalid: %s.
|
|
|
180
190
|
# error.templateSourceMalformed.actions
|
|
181
191
|
|
|
182
192
|
- Run the command again; if it still fails, this plugin's pinned reference commit may need updating.
|
|
193
|
+
|
|
194
|
+
# error.invalidSignal
|
|
195
|
+
|
|
196
|
+
The telemetry signal "%s" isn't valid. Use a comma-separated list drawn from: %s.
|
|
197
|
+
|
|
198
|
+
# error.invalidSignal.actions
|
|
199
|
+
|
|
200
|
+
- Pass one or more of traces, metrics, logs (comma-separated), or "all" on its own for every signal.
|
|
201
|
+
|
|
202
|
+
# error.invalidTransport
|
|
203
|
+
|
|
204
|
+
The telemetry transport "%s" isn't valid. Use one of: %s.
|
|
205
|
+
|
|
206
|
+
# error.invalidTransport.actions
|
|
207
|
+
|
|
208
|
+
- Pass http (OTLP over HTTP), grpc (OTLP over gRPC), or splunk.
|
|
209
|
+
|
|
210
|
+
# error.telemetryDrainNotFound
|
|
211
|
+
|
|
212
|
+
Heroku didn't find a telemetry drain with ID %s.
|
|
213
|
+
|
|
214
|
+
# error.telemetryDrainNotFound.actions
|
|
215
|
+
|
|
216
|
+
- Confirm the telemetry drain ID is correct; it may have already been removed.
|
|
@@ -6,9 +6,9 @@ List a compute app's config vars.
|
|
|
6
6
|
|
|
7
7
|
Shows every config var (environment variable) currently set for a deployed
|
|
8
8
|
compute app, sorted alphabetically. Goes through the target org's Salesforce
|
|
9
|
-
Connect API, which calls Heroku on your behalf. Use sf compute config
|
|
10
|
-
read a single var's value, sf compute config
|
|
11
|
-
sf compute config
|
|
9
|
+
Connect API, which calls Heroku on your behalf. Use sf compute get config to
|
|
10
|
+
read a single var's value, sf compute set config to add or change vars, or
|
|
11
|
+
sf compute unset config to remove them.
|
|
12
12
|
|
|
13
13
|
# flags.name.summary
|
|
14
14
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# summary
|
|
2
|
+
|
|
3
|
+
List the telemetry drains configured for a compute app.
|
|
4
|
+
|
|
5
|
+
# description
|
|
6
|
+
|
|
7
|
+
Shows every OpenTelemetry drain forwarding the compute app's logs, metrics,
|
|
8
|
+
and traces, with each drain's ID, signals, and endpoint. Use
|
|
9
|
+
sf compute display telemetry-drain to see the full detail of a single drain.
|
|
10
|
+
|
|
11
|
+
# flags.name.summary
|
|
12
|
+
|
|
13
|
+
DeveloperName of the compute app to list telemetry drains for (or
|
|
14
|
+
<namespace>\_\_<developerName> if it was deployed under a namespace).
|
|
15
|
+
Defaults to the COMPUTE_APP_NAME environment variable, or the current
|
|
16
|
+
directory's app name if that isn't set either.
|
|
17
|
+
|
|
18
|
+
# info.noDrainsFound
|
|
19
|
+
|
|
20
|
+
No telemetry drains are configured for %s.
|
|
21
|
+
|
|
22
|
+
# examples
|
|
23
|
+
|
|
24
|
+
- List the telemetry drains for a compute app:
|
|
25
|
+
|
|
26
|
+
<%= config.bin %> <%= command.id %> --name CreditRatingScorer --target-org my-org
|