Giter Club home page Giter Club logo

jest-opentelemetry's People

Contributors

dependabot[bot] avatar galkleinman avatar handotdev avatar nirga avatar tomer-friedman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jest-opentelemetry's Issues

๐Ÿ› Bug Report: SyntaxError: Cannot use import statement outside a module

๐Ÿ“œ Description

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.

๐Ÿ‘Ÿ Reproduction steps

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.

๐Ÿ‘ Expected behavior

It should not have a syntax error when parsing.

๐Ÿ‘Ž Actual Behavior with Screenshots

@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

๐Ÿค– Node Version

v18.10.0

๐Ÿ“ƒ Provide any additional context for the Bug.

No response

๐Ÿ‘€ Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

๐Ÿš€ Feature: MongoDB assertions

๐Ÿ”– Feature description

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.

๐ŸŽค Why is this feature needed ?

Completeness of jest-opentelemetry

โœŒ๏ธ How do you aim to achieve this?

Similar to the work we've done in Postgres, this just needs to parse the appropriate MongoDB spans coming from OpenTelemetry.

๐Ÿ”„๏ธ Additional Information

No response

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

๐Ÿš€ Feature: Snowflake Assertions

๐Ÿ”– Feature description

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]'});

๐ŸŽค Why is this feature needed ?

This is a much required feature by our users as Snowflake is widely used.

โœŒ๏ธ How do you aim to achieve this?

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

๐Ÿ”„๏ธ Additional Information

No response

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

Complete move to Typescript

Our project started as a Javascript project and is gradually moving to Typescript.

  • Complete update of all .js files to .ts.
  • Fix all outstanding ESLint issues.

๐Ÿš€ Feature: GRPC Support

๐Ÿ”– Feature description

Implement support for GRPC assertions, similar to REST

๐ŸŽค Why is this feature needed ?

Support running complete test suites on Otel's Demo

โœŒ๏ธ How do you aim to achieve this?

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

๐Ÿ”„๏ธ Additional Information

No response

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

๐Ÿš€ Feature: Redesign of the landing page

๐Ÿ”– Feature description

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.

๐ŸŽค Why is this feature needed ?

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.

โœŒ๏ธ How do you aim to achieve this?

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.

Dark
Light

๐Ÿ”„๏ธ Additional Information

No response

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

Yes I am willing to submit a PR!

๐Ÿš€ Feature: Partial Postgres queries assertions

๐Ÿ”– Feature description

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])

๐ŸŽค Why is this feature needed ?

Our goal with this project is to make end-to-end tests easier. Being able to write simple assertions Is core to this.

โœŒ๏ธ How do you aim to achieve this?

We will need to use some Typescript SQL parser to parse and compare the asserted and actual SQL queries.

๐Ÿ”„๏ธ Additional Information

No response

๐Ÿ‘€ Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.