Skip to content

Commit af1e66a

Browse files
committed
fix: make ApolloTracingDataExt fields public for hydratation
1 parent 502f13c commit af1e66a

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
### Fix
10+
11+
- Make ApolloTracingDataExt fields public for hydratation
912

1013
## [0.2.3]
1114

src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ impl From<HTTPMethod> for Trace_HTTP_Method {
8686
/// This structure must be registered to the Query Data to add context to the apollo metrics.
8787
#[derive(Debug, Clone)]
8888
pub struct ApolloTracingDataExt {
89-
userid: Option<String>,
90-
client_name: Option<String>,
91-
client_version: Option<String>,
92-
path: Option<String>,
93-
host: Option<String>,
94-
method: Option<HTTPMethod>,
95-
secure: Option<bool>,
96-
protocol: Option<String>,
97-
status_code: Option<u32>,
89+
pub userid: Option<String>,
90+
pub client_name: Option<String>,
91+
pub client_version: Option<String>,
92+
pub path: Option<String>,
93+
pub host: Option<String>,
94+
pub method: Option<HTTPMethod>,
95+
pub secure: Option<bool>,
96+
pub protocol: Option<String>,
97+
pub status_code: Option<u32>,
9898
}
9999

100100
impl Default for ApolloTracingDataExt {

0 commit comments

Comments
 (0)