Skip to content

Commit

Permalink
fix(fix-tracing): Fix tracing for Vespa 7
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomcclain committed Dec 11, 2023
1 parent ede224b commit cb9a1cc
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions src/main/js/routes/schema/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function Query({containerUrl, schema}) {
if ("trace" in parsed) {
return // don't overwrite if it's already there
}
parsed["tracelevel"] = 5
parsed["trace"] = {
"level": 5,
"explainLevel": 1,
"timestamps": true
}
Expand All @@ -55,30 +55,30 @@ function Query({containerUrl, schema}) {
handleRunQuery={runQuery}
handleFormatQuery={prettifyJsonQuery}/>
<div className="form-control mb-2 flex flex-row pt-1 justify-end min-w-full">
<a type="button"
className="btn bg-standout-blue text-yellow-400 w-13 flex text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Query reference"
data-tooltip-place="top"
target="_blank"
href={"https://docs.vespa.ai/en/reference/query-api-reference.html"}>
<i className={"text-xs fas fa-question"} />
</a>
<button type="button"
className="btn bg-standout-blue text-yellow-400 w-13 text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Format Query (Cmd+Opt+L)"
data-tooltip-place="top"
onClick={prettifyJsonQuery}>
<i className="fas fa-code block"/>
className="btn bg-standout-blue text-yellow-400 w-13 text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Query reference"
data-tooltip-place="top"
target="_blank"
href={"https://docs.vespa.ai/en/reference/query-api-reference.html"}>
<i className={"text-xs fas fa-question pl-1 pr-1" } />
</button>
<button type="button"
className="btn bg-standout-blue text-yellow-400 w-13 text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Add Trace"
data-tooltip-place="top"
onClick={addTrace}>
<i className="fas fa-search block"/>
className="btn bg-standout-blue text-yellow-400 w-13 text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Format Query (Cmd+Opt+L)"
data-tooltip-place="top"
onClick={prettifyJsonQuery}>
<i className="fas fa-code "/>
</button>
<button type="button"
className="btn bg-standout-blue text-yellow-400 w-13 text-center border-none outline-none mr-1"
data-tooltip-id="vispana-tooltip"
data-tooltip-content="Add Trace"
data-tooltip-place="top"
onClick={addTrace}>
<i className="fas fa-stopwatch pl-1 pr-1"/>
</button>
<button type="button"
className="btn bg-standout-blue text-yellow-400 w-32 btn-blue border-none outline-none"
Expand Down

0 comments on commit cb9a1cc

Please sign in to comment.