traceloop / jest-opentelemetry Goto Github PK
View Code? Open in Web Editor NEWEasily run integration tests for your backends
Home Page: https://www.traceloop.com
License: Apache License 2.0
Easily run integration tests for your backends
Home Page: https://www.traceloop.com
License: Apache License 2.0
It appears that jest can not properly interpret the index.js file, since it is using imports and is not in commonjs format unlike the compiled TS portions of the code base.
Use jest to run *.js files instead of using ts-jest, etc. Useful, because there are some challenges with ts-jest and we can run tests on *.js after TS files are compiled down to commonjs.
It should not have a syntax error when parsing.
@appbloks/storage:test: โ Test suite failed to run
@appbloks/storage:test:
@appbloks/storage:test: test/node_modules/.pnpm/@traceloop[email protected]/node_modules/@traceloop/jest-environment-otel/index.js:1
@appbloks/storage:test: import { teardown, setup } from './dist/global';
@appbloks/storage:test: ^^^^^^
@appbloks/storage:test:
@appbloks/storage:test: SyntaxError: Cannot use import statement outside a module
v18.10.0
No response
None
Similar to how we have Postgres queries assertions that allows us to test that a write to Postgres happened in some system flow, we want to add assertions against MongoDB queries.
Completeness of jest-opentelemetry
Similar to the work we've done in Postgres, this just needs to parse the appropriate MongoDB spans coming from OpenTelemetry.
No response
None
Support asserting against loading data into Snowflake. This will allow us to write assertions like
expectTrace(traceloop)
.toReportToSnowflake()
.withEvent('user-registered')
.withProperties({ 'email': '[email protected]'});
This is a much required feature by our users as Snowflake is widely used.
Probably the easiest way is to find and parse appropriate REST API calls to Snowflake -
https://docs.snowflake.com/en/user-guide/data-load-snowpipe-rest-load
No response
None
Our project started as a Javascript project and is gradually moving to Typescript.
.js
files to .ts
.Implement support for GRPC assertions, similar to REST
Support running complete test suites on Otel's Demo
We need to track specific GRPC attributes as defined by Otel
See -
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/rpc.md#grpc-attributes
No response
None
Hi, in going through YCombinator's recent OS projects, I stumbled across traceloop, I landed on your site and I feel some changes could be effected to give it more life or make it look more active.
It is paramount that there is a revamp of the landing page as I've observed that you've just crossed 100 stars on Github and more and more people are going to visit the landing page, it needs to look like an active project.
This is my first foray into open-source so pardon me for any errors in my convention. I've created a design file and I'm willing to customize and effect changes. I can also convert that to live code using Next.js, all I need is approval or consent from the team.
No response
Yes I am willing to submit a PR!
Our Postgres assertions can only validate exact queries.
So, for example, you can validate that a query like INSERT INTO users(email) VALUES ([email protected])
.
The downside of this is that you need to specify the exact query that was made on the database.
But usually, you don't really want to validate the entire query syntax, you just want to validate that some fields were added to the table, but you don't care about the others.
This feature should allow writing an assertion like
expectTrace(traceloop)
.toQueryPostgresSQL()
.withPartialQuery(
`INSERT INTO users(email) VALUES ([email protected])`
And it will succeed even if the actual query was
INSERT INTO users(name, request_id, email) VALUES (bla, 5934345, [email protected])
Our goal with this project is to make end-to-end tests easier. Being able to write simple assertions Is core to this.
We will need to use some Typescript SQL parser to parse and compare the asserted and actual SQL queries.
No response
None
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.