pub struct ApolloTracingDataExt {
pub client_name: Option<String>,
pub client_version: Option<String>,
pub method: Option<Method>,
pub status_code: Option<u32>,
}
Expand description
The structure where you can add additional context for Apollo Studio. This structure must be added to your query data.
It’ll allow you to segment your users
client_name
- You can segment your users by the client they are using to access your GraphQL API, it’s really usefull when you have mobile and web users for instance. Usually we add a headerapollographql-client-name
to store this data. Apollo Studio will allow you to aggregate your metrics by Client Name.client_version
- You can segment your users by the client but it’s usefull to also have the version your clients are using, especially when you are serving your API for mobile users, it’ll allow you to follow metrics depending on which version your users are. Usually we add a headerapollographql-client-version
to store this data.method
- The HTTP Method.status_code
- The status code return by your GraphQL API. It’s a little weird to have to put it before executing the graphql function, it’ll be changed later but usually it’s just a 200.
Fields§
§client_name: Option<String>
§client_version: Option<String>
§method: Option<Method>
§status_code: Option<u32>
Trait Implementations§
Source§impl Clone for ApolloTracingDataExt
impl Clone for ApolloTracingDataExt
Source§fn clone(&self) -> ApolloTracingDataExt
fn clone(&self) -> ApolloTracingDataExt
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ApolloTracingDataExt
impl Debug for ApolloTracingDataExt
Source§impl Default for ApolloTracingDataExt
impl Default for ApolloTracingDataExt
Source§fn default() -> ApolloTracingDataExt
fn default() -> ApolloTracingDataExt
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApolloTracingDataExt
impl RefUnwindSafe for ApolloTracingDataExt
impl Send for ApolloTracingDataExt
impl Sync for ApolloTracingDataExt
impl Unpin for ApolloTracingDataExt
impl UnwindSafe for ApolloTracingDataExt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more