-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(serverless-aws): Overwrite root span name with GraphQL if set #16010
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
size-limit report 📦
|
}; | ||
|
||
describe('GraphQL/Apollo Tests', () => { | ||
test('should instrument GraphQL queries used from Apollo Server.', async () => { | ||
const EXPECTED_TRANSACTION = { | ||
transaction: 'Test Transaction', | ||
transaction: 'Test Transaction (query)', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this lacking a query name on purpose? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query in this test doesn't have a name:
await server.executeOperation({
query: '{hello}',
});
Whereas, when it has one like this:
await apolloServer.executeOperation({
query: 'query GetHello {hello}',
});
the transaction is named like this: Test Transaction (query GetHello)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahh right, makes sense 👍
No description provided.