mirror of
https://github.com/gitpod-io/gitpod.git
synced 2025-12-08 17:36:30 +00:00
[supervisor-frontend] add version commit
This commit is contained in:
parent
3364a06b1e
commit
fc9a936a27
@ -4,6 +4,7 @@ packages:
|
|||||||
srcs:
|
srcs:
|
||||||
- "src/**"
|
- "src/**"
|
||||||
- "public/**"
|
- "public/**"
|
||||||
|
- config.json
|
||||||
- package.json
|
- package.json
|
||||||
- webpack.config.js
|
- webpack.config.js
|
||||||
- tsconfig.json
|
- tsconfig.json
|
||||||
@ -14,3 +15,8 @@ packages:
|
|||||||
config:
|
config:
|
||||||
dontTest: true
|
dontTest: true
|
||||||
yarnLock: ${coreYarnLockBase}/../yarn.lock
|
yarnLock: ${coreYarnLockBase}/../yarn.lock
|
||||||
|
commands:
|
||||||
|
build:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
- yq w -i config.json commit commit-${__git_commit} -j && yarn build
|
||||||
|
|||||||
3
components/supervisor/frontend/config.json
Normal file
3
components/supervisor/frontend/config.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"commit": "<this value will insert by leeway before running tsc/webpack>"
|
||||||
|
}
|
||||||
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
import { serverUrl, workspaceUrl } from '../shared/urls';
|
import { serverUrl, workspaceUrl } from '../shared/urls';
|
||||||
import { GitpodServiceClient } from './gitpod-service-client';
|
import { GitpodServiceClient } from './gitpod-service-client';
|
||||||
|
const commit = require('../../config.json').commit
|
||||||
|
|
||||||
export enum MetricsName {
|
export enum MetricsName {
|
||||||
SupervisorFrontendClientTotal = "gitpod_supervisor_frontend_client_total",
|
SupervisorFrontendClientTotal = "gitpod_supervisor_frontend_client_total",
|
||||||
@ -67,7 +68,7 @@ export class IDEMetricsServiceClient {
|
|||||||
const params: ReportErrorParam = {
|
const params: ReportErrorParam = {
|
||||||
errorStack: error.stack ?? String(error),
|
errorStack: error.stack ?? String(error),
|
||||||
component: "supervisor-frontend",
|
component: "supervisor-frontend",
|
||||||
version: "unknown",
|
version: commit,
|
||||||
workspaceId: this.workspaceId ?? "",
|
workspaceId: this.workspaceId ?? "",
|
||||||
instanceId: this.instanceId ?? "",
|
instanceId: this.instanceId ?? "",
|
||||||
userId: this.userId ?? "",
|
userId: this.userId ?? "",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user