braintree / apollo-tracing-uploader-java Goto Github PK
View Code? Open in Web Editor NEWUpload Java GraphQL tracing metrics to Apollo Graph Manager
License: MIT License
Upload Java GraphQL tracing metrics to Apollo Graph Manager
License: MIT License
Hi
First of all i would like to thank you for this great library. I just installed it and works perfectly. Find below my feedback
Due to the changes to introspection getUnwrappedNonNullType().getName is not available any more
You have to use GraphQLTypeUtil.simplePrint(stepInfo.getParent().getUnwrappedNonNullType())
I integrated your library with vertx and its asynchronous httpclient (https://vertx.io/docs/vertx-web-client/java/) which is based on the reactive pattern.
In order to implement shutdown correctly (ScheduledBatchingTraceProducer) i need to know when upload has completed and by returning void i cannot get than info.
Again thank you very much
java.lang.ArrayIndexOutOfBoundsException: 3
at java.util.ArrayList.add(ArrayList.java:463)
at com.google.protobuf.RepeatedFieldBuilderV3.addBuilder(RepeatedFieldBuilderV3.java:383)
at mdg.engine.proto.Reports$Trace$Node$Builder.addChildBuilder(Reports.java:9399)
at com.braintreepayments.apollo_tracing_uploader.NodePath$Segment.lambda$getChild$0(NodePath.java:60)
at java.util.Optional.orElseGet(Optional.java:267)
at com.braintreepayments.apollo_tracing_uploader.NodePath$Segment.getChild(NodePath.java:60)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:31)
at com.braintreepayments.apollo_tracing_uploader.TracingUploadInstrumentationState.lambda$beginFieldFetch$6(TracingUploadInstrumentationState.java:117)
at graphql.execution.instrumentation.SimpleInstrumentationContext.onCompleted(SimpleInstrumentationContext.java:48)
at graphql.execution.instrumentation.ChainedInstrumentation$ChainedInstrumentationContext.lambda$onCompleted$1(ChainedInstrumentation.java:254)
at java.util.ArrayList.forEach(ArrayList.java:1257)
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1082)
at graphql.execution.instrumentation.ChainedInstrumentation$ChainedInstrumentationContext.onCompleted(ChainedInstrumentation.java:254)
at graphql.execution.ExecutionStrategy.lambda$fetchField$1(ExecutionStrategy.java:283)
at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:836)
at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:811)
at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:488)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1609)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1596)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Hi!
I'm using apollo-tracing-uploader with Kotlin.
In Kotlin, I can set sanitizeVariables like below:
.sanitizeVariables(VariablesSanitizer.mapValues { it })
The error come out when the value, it
in mapValues
is null
.
Is there any way to upload null
value without any problem?
According to this, Apollo changed its tracing url. I saw that you use the old one and take it from a const (https://engine-report.apollodata.com/) and we need to report to the new one (https://usage-reporting.api.apollographql.com/).
Can you support configuring this url, or consider migrating to the new one?
Seems to be happening within stream processing when iterating over child nodes:
java.lang.NullPointerException: null
at com.google.protobuf.AbstractMessage$Builder.mergeFrom(AbstractMessage.java:371)
at mdg.engine.proto.Reports$Trace$Node$Builder.mergeFrom(Reports.java:8262)
at mdg.engine.proto.Reports$Trace$Node$Builder.mergeFrom(Reports.java:8090)
at com.google.protobuf.SingleFieldBuilderV3.getBuilder(SingleFieldBuilderV3.java:132)
at com.google.protobuf.RepeatedFieldBuilderV3.getBuilder(RepeatedFieldBuilderV3.java:241)
at com.google.protobuf.RepeatedFieldBuilderV3$BuilderExternalList.get(RepeatedFieldBuilderV3.java:626)
at com.google.protobuf.RepeatedFieldBuilderV3$BuilderExternalList.get(RepeatedFieldBuilderV3.java:607)
at java.util.AbstractList$Itr.next(AbstractList.java:358)
at java.util.Spliterators$IteratorSpliterator.tryAdvance(Spliterators.java:1812)
at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:499)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:486)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:531)
at com.braintreepayments.apollo_tracing_uploader.NodePath$Segment.getChild(NodePath.java:59)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:42)
at com.braintreepayments.apollo_tracing_uploader.NodePath.getChild(NodePath.java:31)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.