Skip to content

Commit 5d52ee1

Browse files
authored
Observation panel auto-refresh bug fix (#35)
1 parent 8f4410c commit 5d52ee1

File tree

23 files changed

+1151
-599
lines changed

23 files changed

+1151
-599
lines changed

crates/observation-tools-client/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ utoipa.workspace = true
3737

3838
[dev-dependencies]
3939
anyhow.workspace = true
40+
bytes.workspace = true
41+
futures.workspace = true
4042
observation-tools-server.workspace = true
4143
rand.workspace = true
4244
reqwest.workspace = true

crates/observation-tools-client/index.d.ts

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,34 @@
22
/* eslint-disable */
33
/** Client for observation-tools */
44
export declare class Client {
5-
beginExecution(name: string): ExecutionHandle
5+
beginExecution(name: string): ExecutionHandle;
66
/**
77
* Begin a new execution with a specific ID (for testing)
88
*
99
* This allows tests to create an execution with a known ID, enabling
1010
* navigation to the execution URL before the execution is uploaded.
1111
*/
12-
beginExecutionWithId(id: string, name: string): ExecutionHandle
12+
beginExecutionWithId(id: string, name: string): ExecutionHandle;
1313
}
1414

1515
/** Builder for Client */
1616
export declare class ClientBuilder {
1717
/** Create a new client builder */
18-
constructor()
18+
constructor();
1919
/** Set the base URL for the server */
20-
setBaseUrl(url: string): void
20+
setBaseUrl(url: string): void;
2121
/** Set the API key for authentication */
22-
setApiKey(apiKey: string): void
22+
setApiKey(apiKey: string): void;
2323
/** Build the client */
24-
build(): Client
24+
build(): Client;
2525
}
2626

2727
/** Handle to an execution that can be used to send observations */
2828
export declare class ExecutionHandle {
2929
/** Get the execution ID as a string */
30-
get idString(): string
30+
get idString(): string;
3131
/** Get the URL to the execution page */
32-
get url(): string
32+
get url(): string;
3333
/**
3434
* Create and send an observation
3535
*
@@ -41,7 +41,14 @@ export declare class ExecutionHandle {
4141
* * `source_line` - Optional source line number
4242
* * `metadata` - Optional metadata as an array of [key, value] pairs
4343
*/
44-
observe(name: string, payloadJson: string, labels?: Array<string> | undefined | null, sourceFile?: string | undefined | null, sourceLine?: number | undefined | null, metadata?: Array<Array<string>> | undefined | null): string
44+
observe(
45+
name: string,
46+
payloadJson: string,
47+
labels?: Array<string> | undefined | null,
48+
sourceFile?: string | undefined | null,
49+
sourceLine?: number | undefined | null,
50+
metadata?: Array<Array<string>> | undefined | null,
51+
): string;
4552
}
4653

4754
/**
@@ -50,4 +57,4 @@ export declare class ExecutionHandle {
5057
* This allows tests to generate an execution ID before creating the execution,
5158
* enabling navigation to the execution URL before the execution is uploaded.
5259
*/
53-
export declare function generateExecutionId(): string
60+
export declare function generateExecutionId(): string;

0 commit comments

Comments
 (0)