Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad committed Jul 17, 2024
1 parent 7aaa225 commit fc89e36
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pyroscope/pyroscope.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ const selectMergeStacktracesV2 = async (req, res) => {
}

let start = Date.now()
console.log(sqlReq.toString())
const profiles = await clickhouse.rawRequest(sqlReq.toString() + ' FORMAT RowBinary',
null,
DATABASE_NAME(),
Expand Down Expand Up @@ -459,7 +458,6 @@ const selectSeries = async (req, res) => {
).groupBy('timestamp_ns', 'fingerprint')
.orderBy(['fingerprint', 'ASC'], ['timestamp_ns', 'ASC'])
const strMainReq = mainReq.toString()
console.log(strMainReq)
const chRes = await clickhouse
.rawRequest(strMainReq + ' FORMAT JSON', null, DATABASE_NAME())

Expand Down Expand Up @@ -607,7 +605,6 @@ const series = async (req, res) => {
new Sql.In('p.fingerprint', 'IN', new Sql.WithReference(withIdxReq))
)
)
console.log(labelsReq.toString())
promises.push(clickhouse.rawRequest(labelsReq.toString() + ' FORMAT JSON', null, DATABASE_NAME()))
}
const resp = await Promise.all(promises)
Expand Down Expand Up @@ -658,7 +655,6 @@ const getSpecialMatchers = (query) => {
const res = {}
for (const name of
['__name__', '__period_type__', '__period_unit__', '__sample_type__', '__sample_unit__', '__profile_type__']) {
console.log(`${name}\\s*(=~|!~|=|!=)\\s*("([^"]|\\\\.)+"),*`)
const re = new RegExp(`${name}\\s*(=~|!~|=|!=)\\s*("([^"]|\\\\.)+"),*`, 'g')
const pair = re.exec(query)
if (pair) {
Expand Down

0 comments on commit fc89e36

Please sign in to comment.