@blaxel/core 0.2.0-dev6 → 0.2.0-dev7

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.
@@ -20,6 +20,7 @@ declare class Settings {
20
20
  get type(): string;
21
21
  get runInternalHostname(): string;
22
22
  get runInternalProtocol(): string;
23
+ get loggerType(): string;
23
24
  authenticate(): Promise<void>;
24
25
  }
25
26
  export declare const settings: Settings;
@@ -77,6 +77,9 @@ class Settings {
77
77
  get runInternalProtocol() {
78
78
  return env_js_1.env.BL_RUN_INTERNAL_PROTOCOL || "https";
79
79
  }
80
+ get loggerType() {
81
+ return env_js_1.env.BL_LOGGER || "http";
82
+ }
80
83
  async authenticate() {
81
84
  await this.credentials.authenticate();
82
85
  }
package/dist/index.d.ts CHANGED
@@ -10,5 +10,6 @@ export * from "./common/settings.js";
10
10
  export * from "./mcp/index.js";
11
11
  export * from "./models/index.js";
12
12
  export * from "./sandbox/index.js";
13
+ export * from "./telemetry/telemetry.js";
13
14
  export * from "./tools/index.js";
14
15
  export * from "./tools/types.js";
package/dist/index.js CHANGED
@@ -26,5 +26,6 @@ __exportStar(require("./common/settings.js"), exports);
26
26
  __exportStar(require("./mcp/index.js"), exports);
27
27
  __exportStar(require("./models/index.js"), exports);
28
28
  __exportStar(require("./sandbox/index.js"), exports);
29
+ __exportStar(require("./telemetry/telemetry.js"), exports);
29
30
  __exportStar(require("./tools/index.js"), exports);
30
31
  __exportStar(require("./tools/types.js"), exports);
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Options for creating a span
3
3
  */
4
- export interface SpanOptions {
4
+ export interface BlaxelSpanOptions {
5
5
  /** Key-value attributes to attach to the span */
6
6
  attributes?: Record<string, string | number | boolean>;
7
7
  /** Parent span context, if any */
@@ -12,7 +12,7 @@ export interface SpanOptions {
12
12
  /**
13
13
  * Represents a telemetry span
14
14
  */
15
- export interface Span {
15
+ export interface BlaxelSpan {
16
16
  /** Add an attribute to the span */
17
17
  setAttribute(key: string, value: string | number | boolean): void;
18
18
  /** Add multiple attributes to the span */
@@ -29,9 +29,9 @@ export interface Span {
29
29
  /**
30
30
  * Provider interface for telemetry functionality
31
31
  */
32
- export interface TelemetryProvider {
32
+ export interface BlaxelTelemetryProvider {
33
33
  /** Create a new span */
34
- startSpan(name: string, options?: SpanOptions): Span;
34
+ startSpan(name: string, options?: BlaxelSpanOptions): BlaxelSpan;
35
35
  }
36
36
  /**
37
37
  * Registry for managing the global telemetry provider
@@ -44,15 +44,15 @@ declare class TelemetryRegistry {
44
44
  /**
45
45
  * Register a telemetry provider implementation
46
46
  */
47
- registerProvider(provider: TelemetryProvider): void;
47
+ registerProvider(provider: BlaxelTelemetryProvider): void;
48
48
  /**
49
49
  * Get the current telemetry provider
50
50
  */
51
- getProvider(): TelemetryProvider;
51
+ getProvider(): BlaxelTelemetryProvider;
52
52
  }
53
53
  export declare const telemetryRegistry: TelemetryRegistry;
54
54
  /**
55
55
  * Create a span with the registered provider
56
56
  */
57
- export declare function startSpan(name: string, options?: SpanOptions): Span;
57
+ export declare function startSpan(name: string, options?: BlaxelSpanOptions): BlaxelSpan;
58
58
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blaxel/core",
3
- "version": "0.2.0-dev6",
3
+ "version": "0.2.0-dev7",
4
4
  "description": "Blaxel Core SDK for TypeScript",
5
5
  "license": "MIT",
6
6
  "author": "Blaxel, INC (https://blaxel.ai)",