Skip to content

Commit

Permalink
fix(runtime): Fix expectation of trace context when running in cloud (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dnys1 authored Oct 17, 2024
1 parent 206857b commit 019c007
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/celest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1+1

- fix: Fix expectation of trace context when running in cloud

## 1.0.1

- chore: Remove assumptions about where the project is deployed
Expand Down
2 changes: 1 addition & 1 deletion packages/celest/lib/src/core/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ final class Context {
shelf.Request get currentRequest => expect(ContextKey.currentRequest);

/// The [Traceparent] for the current request.
Traceparent get currentTrace => expect(ContextKey.currentTrace);
Traceparent? get currentTrace => get(ContextKey.currentTrace);

/// The Celest [Environment] of the running service.
Environment get environment => expect(env.environment) as Environment;
Expand Down
2 changes: 1 addition & 1 deletion packages/celest/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: celest
description: The Flutter cloud platform. Celest enables you to build your entire backend in Dart.
version: 1.0.1
version: 1.0.1+1
homepage: https://celest.dev
repository: https://github.com/celest-dev/celest/tree/main/packages/celest

Expand Down

0 comments on commit 019c007

Please sign in to comment.