Commit bfece75
authored
Set up tracing, OTel, and metrics (#16)
* initial rust initialization
* added pre-commit
* set up sqlx and rust
* added license files and initial migration;
* added initial impl of client
* tests compile
* fixed bugs with sqlx types
* added documentation
* added tests
* updated tasks
* added a test that mocks the example in README
* removed todos
* added convenience methods for uuid, rand, now
* added handling for spawning and joining subtasks from workflows
* added missing sql and test files
* merged migrations
* cleaned up bad code
* cleaned up json handling
* made process exit optional on too-long tasks
* fixed semaphore ordering
* fixed issues with clock skew
* improved handling of leases
* added comments on sql schema
* enforced that claim timeouts must be set
* cleaned up and documented sql
* added support for transactions that enqueue tasks
* added a bunch of tests
* documented and tested event semantics
* added benchmarks
* initial implementation of telemetry
* removed exporter setup from crate
* telemetry tests pass
* removed extra license file
* inject otel context as a string for key durable::otel_context
* protect durable:: headers for internal use
* addressed PR comment1 parent 4eae5b8 commit bfece75
File tree
11 files changed
+1611
-29
lines changed- src
- telemetry
- tests
11 files changed
+1611
-29
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
30 | 49 | | |
31 | 50 | | |
32 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
| |||
355 | 370 | | |
356 | 371 | | |
357 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
358 | 381 | | |
359 | 382 | | |
360 | 383 | | |
| |||
380 | 403 | | |
381 | 404 | | |
382 | 405 | | |
| 406 | + | |
383 | 407 | | |
384 | 408 | | |
385 | 409 | | |
386 | 410 | | |
387 | 411 | | |
388 | | - | |
| 412 | + | |
389 | 413 | | |
390 | 414 | | |
391 | 415 | | |
392 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
393 | 430 | | |
394 | 431 | | |
395 | 432 | | |
| |||
405 | 442 | | |
406 | 443 | | |
407 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
408 | 448 | | |
409 | 449 | | |
410 | 450 | | |
| |||
452 | 492 | | |
453 | 493 | | |
454 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
455 | 503 | | |
456 | 504 | | |
457 | 505 | | |
| |||
461 | 509 | | |
462 | 510 | | |
463 | 511 | | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
464 | 516 | | |
465 | 517 | | |
466 | 518 | | |
| |||
471 | 523 | | |
472 | 524 | | |
473 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
474 | 529 | | |
475 | 530 | | |
476 | 531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
| |||
174 | 182 | | |
175 | 183 | | |
176 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
177 | 188 | | |
178 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
179 | 200 | | |
180 | 201 | | |
181 | 202 | | |
| |||
225 | 246 | | |
226 | 247 | | |
227 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
228 | 257 | | |
229 | 258 | | |
230 | 259 | | |
| |||
268 | 297 | | |
269 | 298 | | |
270 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
271 | 308 | | |
272 | 309 | | |
273 | 310 | | |
| |||
323 | 360 | | |
324 | 361 | | |
325 | 362 | | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
326 | 371 | | |
327 | 372 | | |
328 | 373 | | |
| |||
352 | 397 | | |
353 | 398 | | |
354 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
355 | 408 | | |
356 | 409 | | |
357 | 410 | | |
| |||
454 | 507 | | |
455 | 508 | | |
456 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
457 | 518 | | |
458 | 519 | | |
459 | 520 | | |
| |||
515 | 576 | | |
516 | 577 | | |
517 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
518 | 592 | | |
519 | 593 | | |
520 | 594 | | |
| |||
574 | 648 | | |
575 | 649 | | |
576 | 650 | | |
577 | | - | |
578 | | - | |
| 651 | + | |
579 | 652 | | |
580 | 653 | | |
581 | 654 | | |
| |||
590 | 663 | | |
591 | 664 | | |
592 | 665 | | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
593 | 674 | | |
594 | 675 | | |
595 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| |||
0 commit comments