|
38 | 38 | "context": { |
39 | 39 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
40 | 40 | "caller_functionname": "main", |
41 | | - "caller_lineno": 0 |
| 41 | + "caller_lineno": 0, |
| 42 | + "span_origin": { |
| 43 | + "instrumentation": { |
| 44 | + "name": "braintrust-js-logger" |
| 45 | + }, |
| 46 | + "name": "braintrust.sdk.javascript", |
| 47 | + "version": "<xact:1>" |
| 48 | + } |
42 | 49 | }, |
43 | 50 | "created": "<timestamp>", |
44 | 51 | "id": "<span:2>", |
|
71 | 78 | "context": { |
72 | 79 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
73 | 80 | "caller_functionname": "logger.traced.name", |
74 | | - "caller_lineno": 0 |
| 81 | + "caller_lineno": 0, |
| 82 | + "span_origin": { |
| 83 | + "instrumentation": { |
| 84 | + "name": "braintrust-js-logger" |
| 85 | + }, |
| 86 | + "name": "braintrust.sdk.javascript", |
| 87 | + "version": "<xact:1>" |
| 88 | + } |
75 | 89 | }, |
76 | 90 | "created": "<timestamp>", |
77 | 91 | "id": "<span:6>", |
|
106 | 120 | "context": { |
107 | 121 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
108 | 122 | "caller_functionname": "logger.traced.name", |
109 | | - "caller_lineno": 0 |
| 123 | + "caller_lineno": 0, |
| 124 | + "span_origin": { |
| 125 | + "instrumentation": { |
| 126 | + "name": "braintrust-js-logger" |
| 127 | + }, |
| 128 | + "name": "braintrust.sdk.javascript", |
| 129 | + "version": "<xact:1>" |
| 130 | + } |
110 | 131 | }, |
111 | 132 | "created": "<timestamp>", |
112 | 133 | "error": "basic boom\n\nError: basic boom\n at logger.traced.name (<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts:0:0)\n at <repo>/js/dist/index.mjs:0:0\n at AsyncLocalStorage.run (node:<internal>:0:0)\n at BraintrustContextManager.runInContext (<repo>/js/dist/index.mjs:0:0)\n at withCurrent (<repo>/js/dist/index.mjs:0:0)\n at <repo>/js/dist/index.mjs:0:0\n at runCatchFinally (<repo>/js/dist/index.mjs:0:0)\n at Logger.traced (<repo>/js/dist/index.mjs:0:0)\n at main (<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts:0:0)\n at runMain (<repo>/e2e/helpers/scenario-runtime.ts:0:0)", |
|
143 | 164 | "context": { |
144 | 165 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
145 | 166 | "caller_functionname": "main", |
146 | | - "caller_lineno": 0 |
| 167 | + "caller_lineno": 0, |
| 168 | + "span_origin": { |
| 169 | + "instrumentation": { |
| 170 | + "name": "braintrust-js-logger" |
| 171 | + }, |
| 172 | + "name": "braintrust.sdk.javascript", |
| 173 | + "version": "<xact:1>" |
| 174 | + } |
147 | 175 | }, |
148 | 176 | "created": "<timestamp>", |
149 | 177 | "id": "<span:2>", |
|
176 | 204 | "context": { |
177 | 205 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
178 | 206 | "caller_functionname": "logger.traced.name", |
179 | | - "caller_lineno": 0 |
| 207 | + "caller_lineno": 0, |
| 208 | + "span_origin": { |
| 209 | + "instrumentation": { |
| 210 | + "name": "braintrust-js-logger" |
| 211 | + }, |
| 212 | + "name": "braintrust.sdk.javascript", |
| 213 | + "version": "<xact:1>" |
| 214 | + } |
180 | 215 | }, |
181 | 216 | "created": "<timestamp>", |
182 | 217 | "id": "<span:6>", |
|
211 | 246 | "context": { |
212 | 247 | "caller_filename": "<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts", |
213 | 248 | "caller_functionname": "logger.traced.name", |
214 | | - "caller_lineno": 0 |
| 249 | + "caller_lineno": 0, |
| 250 | + "span_origin": { |
| 251 | + "instrumentation": { |
| 252 | + "name": "braintrust-js-logger" |
| 253 | + }, |
| 254 | + "name": "braintrust.sdk.javascript", |
| 255 | + "version": "<xact:1>" |
| 256 | + } |
215 | 257 | }, |
216 | 258 | "created": "<timestamp>", |
217 | 259 | "error": "basic boom\n\nError: basic boom\n at logger.traced.name (<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts:0:0)\n at <repo>/js/dist/index.mjs:0:0\n at AsyncLocalStorage.run (node:<internal>:0:0)\n at BraintrustContextManager.runInContext (<repo>/js/dist/index.mjs:0:0)\n at withCurrent (<repo>/js/dist/index.mjs:0:0)\n at <repo>/js/dist/index.mjs:0:0\n at runCatchFinally (<repo>/js/dist/index.mjs:0:0)\n at Logger.traced (<repo>/js/dist/index.mjs:0:0)\n at main (<repo>/e2e/scenarios/trace-primitives-basic/scenario.ts:0:0)\n at runMain (<repo>/e2e/helpers/scenario-runtime.ts:0:0)", |
|
0 commit comments