Skip to content

Commit 019c007

Browse files
authored
fix(runtime): Fix expectation of trace context when running in cloud (#228)
1 parent 206857b commit 019c007

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/celest/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1+1
2+
3+
- fix: Fix expectation of trace context when running in cloud
4+
15
## 1.0.1
26

37
- chore: Remove assumptions about where the project is deployed

packages/celest/lib/src/core/context.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ final class Context {
122122
shelf.Request get currentRequest => expect(ContextKey.currentRequest);
123123

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

127127
/// The Celest [Environment] of the running service.
128128
Environment get environment => expect(env.environment) as Environment;

packages/celest/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: celest
22
description: The Flutter cloud platform. Celest enables you to build your entire backend in Dart.
3-
version: 1.0.1
3+
version: 1.0.1+1
44
homepage: https://celest.dev
55
repository: https://github.com/celest-dev/celest/tree/main/packages/celest
66

0 commit comments

Comments
 (0)