Skip to content

Apollo v2 BeforeSpanCallback does not allow returning null #2149

@adinauer

Description

@adinauer

Integration

sentry-apollo

Build System

Gradle

AGP Version

Proguard

Disabled

Version

6.1.4

Steps to Reproduce

fun execute(span: ISpan, request: InterceptorRequest, response: InterceptorResponse?): ISpan

Expected Result

Can return null by changing the return signature to ISpan?
In case null is returned, original span needs to be set to non traced as other integrations do (Feign / OkHttp).

Actual Result

Can't return null

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions