Comments (4)
A new consumer option for nanos precision was added. You can set nanoPrecision: true in the consumer configuration in order to have the time return in RFC3339Nano format.
Time field by default = "time": "2024-04-10T14:13:46+01:00"
With nanoPrecision: true = "time": "2024-04-10T13:08:49.127Z"
To have more flexibility this could be change further to allow specification of the exact format (as per @mostafa). We had questions around the format, whether it be javascript or go formats. Or constants for each format type.
from xk6-kafka.
Hey @romankristof,
That is to make Goja (and the user) happy when exporting datetime to JSON, so you can use it in your JS code. I'd be happy to see contributions, though. As in, make this a configurable field on the consume function using the ConsumeConfig struct, which eventually gets passed down to the consume function.
from xk6-kafka.
As long as there is no way to get the original (meaning with full precision) timestamp of the consumed message this is unusable to measure timings or generate metrics for the messages. Which is actually what one would like to do in load tests.
Please add a way to get the message timestamp with better precision.
from xk6-kafka.
Hey @AndreasKorn,
I'd be happy if you contribute this feature.
from xk6-kafka.
Related Issues (20)
- Creating Connection object failed on `EOF` HOT 1
- Adding support for K6 0.49.0 HOT 3
- Make docker image supports on arm HOT 8
- Incorrect reader/writer initialization in examples and description
- Wrong documentation for ReaderConfig.startOffset HOT 2
- RabbitMQ Compatibility HOT 1
- GoError: Failed to encode data, OriginalError: cannot decode textual record HOT 9
- Binary is not getting build. HOT 2
- Is there any guidance on how k6 works with complex AVRO schemas? HOT 1
- Error importing SCHEMA_TYPES enum when using index.d.ts. HOT 3
- Load test with Avro Schema that contains references throw an error HOT 2
- Reader.consume wont timeout HOT 1
- Getting tls: bad certificate error when try to write avro type message HOT 1
- Query : Avro with and without Schema Registry HOT 9
- How to come up the limit for reader.consume method? HOT 9
- Request to add authentication through oauth bearer token HOT 2
- Use of xk6-kafka with TS and webpack HOT 2
- Error serializing nullable boolean HOT 1
- Possibility to connect to AWS Glue to get SchemaRegistry data HOT 4
- Schema Registry serialized message causes SchemaRegistryException on AWS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xk6-kafka.