OpenTelemetry WG ·
OpenTelemetry WG meetings · Jump to notesAgenda
OTel WG — April 2025
- Date & Time: April 24, 2025, 10:00 – 11:00 AM PDT
- View the calendar, or subscribe (Google Calendar, ical file).
- Please Note: The date or time may change. Please check this agenda the week of the meeting to confirm. While we try to keep all calendars accurate, this agenda document is the source of truth.
- Video Conference Link: https://zoom.us/j/93594710848
- Password: otel
- Live Notes: Live Notes
Attendees
| Name | GitHub | Organization | Location |
|---|---|---|---|
| Pascal Senn (Host) | @pascalsenn | ChilliCream | Zurich, CH |
| Benjie Gillam | @benjie | Graphile | Chandler's Ford, UK |
| Trask Stalnaker | @trask | Microsoft | Portland, OR, US |
| Michael Staib | @michaelstaib | ChilliCream | Zurich, CH |
| Valentin Cocaud | @EmrysMyrddin | The Guild | Nantes, FR |
| Bryn Cooke | @BrynCooke | Apollo | Norfolk, UK |
| Caroline Rodewig | @carodewig | Apollo | Traverse City, MI, US |
Agenda
- Agree to Membership Agreement, Participation & Contribution Guidelines and Code of Conduct (1m, Host)
- Specification Membership Agreement
- Participation Guidelines
- Contribution Guide
- Code of Conduct
- Meetings are published to YouTube and we may use LLM/AI summary tools
- Introduction of attendees their motivation & goals (10m, Host)
- Determine volunteers for note taking (1m, Host)
- Review agenda (2m, Host)
- Check for ready for review agenda items (5m, Host)
- Introduction and current state of OpenTelemetry in GraphQL (5m, Pascal)
- Identify and collect core use cases we want to support (10m, Pascal)
- Focus on what we want to discover or enable through OTEL data
- Roadmap planning and goals (5m, Pascal)
- Initial draft discussion (5m, Pascal)
Notes
GraphQL OTel WG Notes - April 2025
Watch the replays: GraphQL OTel Working Group Meetings on YouTube
Agenda: https://github.com/graphql/otel-wg/blob/main/agendas/2025/04-Apr/24-otel-wg-april-2025.md
Introduction of attendees their motivation & goals (10m, Host)
- Pascal: Want to make a standard that everyone can follow so it can be consumed by all types of tooling.
- Benjie: Want to ensure we're not over-recording so we don't shoot ourselves in the foot by e.g. recording every resolver call.
- Trask: OpenTelemetry community can't do all libraries so we want libraries/specs to be empowered to do that work themselves. Want to help you be successful and be a model for future efforts.
- Bryn: third party APMs, hard to get started due to lack of OTel standard for GraphQL. GraphQL Document is rather heavy to send!
Determine volunteers for note taking (1m, Host)
- Benjie
Review agenda (2m, Host)
- Review what's out there.
- Define what we want to achieve - what insights do users need?
- How do we get there?
Introduction and current state of OpenTelemetry in GraphQL (5m, Pascal)
- Current graphql registry in OTel website lists operation type / operation name
/ document are the only standard attributes right now
- And sending the document for every operation is not ideal - they can get large! Waste of bandwidth/storage.
- https://github.com/open-telemetry/semantic-conventions/pull/562 specifies traces, but would be nice to add meters/counters too.
Identify and collect core use cases we want to support (10m, Pascal)
- Focus on what we want to discover or enable through OTEL data
- Versioning: which client versions are in use.
- How long to validate, coerce, compile, plan, execute the operation? Cache hit / cache miss?
- Bryn: must work nicely with the rest of the OTel specs - e.g. can we get any of this from HTTP semantic conventions?
- How does cardinality come into this? Field-level metrics will have a high cardinality.
- Pascal: GraphQL.js OTel wrapping of resolvers makes sync execution suddenly really expensive
- Pascal: HotChocolate only traces asynchronous resolvers, no need for sync
- Chillicream have a meter that counts how many times a field was requested. Attribute differentiates the field requested. Static allocation of meter/counter, increment it by one when a request comes in - 50 counters for 50 fields.
- More pressure on API doesn't produce more metrics, helps avoid memory increases.
- Trask: default cap in OTel is 2000 combinations (it is adjustable).
- Bryn: combination of field against type is the unique identifier ("schema coordinates") - you may end up with 10k of these.
- Costs in DataDog/etc are usually based on cardinality.
- HTTP has route which has placeholders for ID/etc - so you'd have similar issues with a REST API.
- Route is recommended, e.g. generated by SpringBoot controller paths.
- Benjie: if we ruled out scalar fields, there'd be a lot less cardinality
- Bryn: Operation name and query type belong in there.
- Benjie: hash of the document (e.g. persisted query/trusted document ID)
- Trask: User_Agent.original is enabled by default (not under HTTP.)
- Pascal: version of the schema
- Benjie: recommend this is an arbitrary string
- Pascal: probably a resource attribute rather than a regular one
- Valentin: hot loading of the schema
- Pascal: for gateway a combination of a hash of the schema and the version of the server would work
- Trask (chat):
service.version - Trask: you can define resource conventions alongside the semantic conventions
- Trask: is it immutable and singleton?
- immutable: cannot change during the runtime of the service currently; but "entities" work is addressing these issues around immutability and organization. Defines descriptive attributes that can or cannot change.
- Pascal:
service.versionis likely the deployed Docker version or git version, but for federation the schema may change at runtime so since resource attributes are immutable we'll need a span attribute - Valentin (chat): It can happen in rare cases that some spans with 2 different schema id are interleaved
- Bryn: errors are key. HTTP allows for HTTP status.
- Trask:
error.typeanderror.messagemay be appropriate - Could have a GraphQL-specific error map
- Span events are being transitioned to log-based events.
- Each error could be recorded as an event.
- Span events are being deprecated.
Use Cases
Attributes of traces
- operatrion name
- operation type
- operation hash
- client type/name/version -> user_agent.orginal
- schema id/version <- user configurable optional
- span.status
Errors
error.type error.message
- schema coordinate
- path
Performance Insights
- How does an operation performe over time
- How does a resolver perform over time
- Which operations/fields/resolver have errors
- How big are dataloader batches
- How many operations are executed/executing -> subscription
- Which client & version sent a request? What is there distribution?
- How long does an operation take to validate, coerce (& compile)
Error Insights
- What are the most common errors
Schema Evolution Questions
- Is this field in use?
- How often is a field requested?
- How many requests are made including a field?
Distributed GraphQL
- Query Plan Step?
- Query Planning Duration?
Zoom summary
Meeting Summary for OTel WG
NOTICE: This summary was auto-generated by Zoom's "AI". AI-generated content may be inaccurate or misleading. Always check for accuracy. If in doubt, please consult the meeting recording at https://youtube.com/@GraphQLFoundation/playlists
- Meeting start: 2025-04-24T16:59:26Z
- Meeting end: 2025-04-24T18:03:22Z
- Summary start: 2025-04-24T16:59:54Z
- Summary end: 2025-04-24T18:02:36Z
The group discussed the need for standardized OpenTelemetry conventions for GraphQL, focusing on defining useful traces and metrics without including overly large payloads. They explored challenges related to managing large amounts of data in APIs and GraphQL, as well as handling GraphQL errors in OpenTelemetry spans. The group agreed to meet monthly and use the OpenTelemetry working group repository for follow-up discussions and issues.
Next Steps
- Trask to write up different options for handling GraphQL errors in spans and follow up with the group.
- All participants to research and write up topics discussed in the meeting asynchronously before the next meeting.
- Pascal to create a new agenda entry for the next monthly meeting.
- All participants to add topics to the new agenda for the next meeting.
- All participants to open and follow issues in the OTel WG repository for further discussion.
Summary
Standardizing OpenTelemetry for GraphQL Conventions
The group discusses the goals and motivations for creating standardized OpenTelemetry conventions for GraphQL. Pascal from ChilliCream emphasizes the need for common spans, tags, and meters across different GraphQL implementations to enable plug-and-play functionality with various monitoring tools. Benjie aims to ensure the conventions are sensible and don't introduce performance issues. Trask from OpenTelemetry offers support to help make this effort successful. Bryn from Apollo highlights the challenges of connecting to third-party APMs without standardized conventions. The group agrees on the importance of defining useful traces and metrics that don't include overly large payloads like full GraphQL documents.
Monitoring Operations and Resolver Performance
Pascal discussed the need for a tool to monitor the performance of operations and resolvers over time, including error tracking and data loader performance. He also mentioned the importance of understanding client and versioning semantics. Bryn raised concerns about the high cardinality of field-level metrics and their potential impact on API performance. Pascal explained their approach to tracing asynchronous resolvers and field requests, but acknowledged the need to consider the upper boundary of meter dimensions. Trask suggested that the default limit in open telemetry SDKs is 2,000 combinations.
API Data Management Challenges Discussed
Pascal and Bryn discussed the challenges of managing large amounts of data, particularly in the context of APIs and GraphQL. Pascal suggested that the issue might be similar for both REST and GraphQL APIs. Benjie proposed a potential solution, suggesting that the expense of loading object records and lists of object records could be reduced. Bryn proposed starting with easier tasks, such as moving documents from recommended to optional, and suggested that this could be a less controversial approach.
Version Tracking in Client-Server Interactions
In the meeting, Benjie and Pascal discussed the importance of identifying and tracking different versions of a document, particularly in the context of client and server interactions. They agreed that a unique identifier, such as a SHA hash, could be used to distinguish between versions. Pascal suggested that this information could be correlated with user agent data to identify specific client versions. However, they also acknowledged that this might not be necessary for all systems, especially those with hot reloading capabilities. The team also discussed the potential for proxying GraphQL to multiple places and the need for version tracking in gateway scenarios. Valentin proposed using a version attribute that could be represented in different ways, such as a hash or a specific ID, depending on the system being used.
Schema Hash for Interoperability Discussion
Bryn, Valentin, Pascal, Trask, and Benjie discussed the use of schema hash and its potential for interoperability. Pascal suggested defining resource attributes in the semantic convention, which could include an optional schema ID. Trask agreed but noted that some edge cases might require further consideration. Pascal also raised the issue of schema changes during runtime in federated scenarios, which could affect the service version. Trask suggested starting with a span attribute and potentially moving it to an entity attribute as the entities work develops. The team agreed to pick one approach for now.
GraphQL Error Handling in OpenTelemetry
The group discusses how to handle GraphQL errors in OpenTelemetry spans. They explore options for reporting errors, including using span attributes, events, and logs. Trask agrees to write up different options for handling errors. The group also discusses the importance of capturing schema coordinates and operation paths for GraphQL errors. They decide to meet monthly and use the OpenTelemetry working group repository for follow-up issues and discussions.