@glassflow-ai/rius 0.2.3 → 0.2.4
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.
- package/dist/index.cjs +4 -4
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -981,7 +981,7 @@ function init(options = {}) {
|
|
|
981
981
|
const authHeaders = config.apiKey ? { Authorization: `Bearer ${config.apiKey}` } : {};
|
|
982
982
|
let health;
|
|
983
983
|
if (!config.disabled) {
|
|
984
|
-
const base = options.spanExporter ?? new
|
|
984
|
+
const base = options.spanExporter ?? new import_exporter_trace_otlp_proto.OTLPTraceExporter({
|
|
985
985
|
url: `${config.endpoint}/v1/traces`,
|
|
986
986
|
headers: config.apiKey ? authHeaders : void 0
|
|
987
987
|
});
|
|
@@ -1033,13 +1033,13 @@ function init(options = {}) {
|
|
|
1033
1033
|
function getTracer() {
|
|
1034
1034
|
return import_api5.trace.getTracer(TRACER_NAME);
|
|
1035
1035
|
}
|
|
1036
|
-
var import_api5,
|
|
1036
|
+
var import_api5, import_exporter_trace_otlp_proto, import_resources, import_sdk_trace_base, import_sdk_trace_node, import_semantic_conventions, sinks, heartbeats, createClient, RiusClient, globalClient;
|
|
1037
1037
|
var init_client = __esm({
|
|
1038
1038
|
"src/client.ts"() {
|
|
1039
1039
|
"use strict";
|
|
1040
1040
|
init_cjs_shims();
|
|
1041
1041
|
import_api5 = require("@opentelemetry/api");
|
|
1042
|
-
|
|
1042
|
+
import_exporter_trace_otlp_proto = require("@opentelemetry/exporter-trace-otlp-proto");
|
|
1043
1043
|
import_resources = require("@opentelemetry/resources");
|
|
1044
1044
|
import_sdk_trace_base = require("@opentelemetry/sdk-trace-base");
|
|
1045
1045
|
import_sdk_trace_node = require("@opentelemetry/sdk-trace-node");
|
|
@@ -1234,7 +1234,7 @@ function observe(fn, options = {}) {
|
|
|
1234
1234
|
// src/index.ts
|
|
1235
1235
|
init_semconv();
|
|
1236
1236
|
init_spans();
|
|
1237
|
-
var VERSION = "0.2.
|
|
1237
|
+
var VERSION = "0.2.4";
|
|
1238
1238
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1239
1239
|
0 && (module.exports = {
|
|
1240
1240
|
Generation,
|
package/dist/index.d.cts
CHANGED
|
@@ -203,6 +203,6 @@ interface ObserveOptions {
|
|
|
203
203
|
*/
|
|
204
204
|
declare function observe<F extends (...args: never[]) => unknown>(fn: F, options?: ObserveOptions): (...args: Parameters<F>) => Promise<Awaited<ReturnType<F>>>;
|
|
205
205
|
|
|
206
|
-
declare const VERSION = "0.2.
|
|
206
|
+
declare const VERSION = "0.2.4";
|
|
207
207
|
|
|
208
208
|
export { Generation, type GenerationBody, type GenerationOptions, type InitOptions, type Mask, Observation, type ObserveOptions, RiusClient, type RiusOptions, type SpanBody, SpanKind, type SpanOptions, VERSION, getTracer, init, observe, startAsCurrentGeneration, startAsCurrentSpan, startGeneration, startSpan };
|
package/dist/index.d.ts
CHANGED
|
@@ -203,6 +203,6 @@ interface ObserveOptions {
|
|
|
203
203
|
*/
|
|
204
204
|
declare function observe<F extends (...args: never[]) => unknown>(fn: F, options?: ObserveOptions): (...args: Parameters<F>) => Promise<Awaited<ReturnType<F>>>;
|
|
205
205
|
|
|
206
|
-
declare const VERSION = "0.2.
|
|
206
|
+
declare const VERSION = "0.2.4";
|
|
207
207
|
|
|
208
208
|
export { Generation, type GenerationBody, type GenerationOptions, type InitOptions, type Mask, Observation, type ObserveOptions, RiusClient, type RiusOptions, type SpanBody, SpanKind, type SpanOptions, VERSION, getTracer, init, observe, startAsCurrentGeneration, startAsCurrentSpan, startGeneration, startSpan };
|
package/dist/index.js
CHANGED
|
@@ -957,7 +957,7 @@ var init_pending = __esm({
|
|
|
957
957
|
|
|
958
958
|
// src/client.ts
|
|
959
959
|
import { trace } from "@opentelemetry/api";
|
|
960
|
-
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-
|
|
960
|
+
import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto";
|
|
961
961
|
import { resourceFromAttributes } from "@opentelemetry/resources";
|
|
962
962
|
import {
|
|
963
963
|
BatchSpanProcessor,
|
|
@@ -1209,7 +1209,7 @@ function observe(fn, options = {}) {
|
|
|
1209
1209
|
// src/index.ts
|
|
1210
1210
|
init_semconv();
|
|
1211
1211
|
init_spans();
|
|
1212
|
-
var VERSION = "0.2.
|
|
1212
|
+
var VERSION = "0.2.4";
|
|
1213
1213
|
export {
|
|
1214
1214
|
Generation,
|
|
1215
1215
|
Observation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassflow-ai/rius",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "OpenTelemetry-native tracing for AI agents and LLM applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"opentelemetry",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"typecheck": "tsc --noEmit"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@opentelemetry/exporter-trace-otlp-
|
|
54
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.221.0",
|
|
55
55
|
"@opentelemetry/instrumentation": "^0.221.0",
|
|
56
56
|
"@opentelemetry/resources": "^2.10.0",
|
|
57
57
|
"@opentelemetry/sdk-trace-base": "^2.10.0",
|