Git Product home page Git Product logo

epsagon-browser's People

Contributors

arbiv avatar dependabot[bot] avatar haddasbronfman avatar nava-cx avatar navabeginsky avatar nemoshlag avatar osherv avatar qunapi avatar ranrib avatar sagivr2020 avatar ten-ayu avatar

Stargazers

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

Watchers

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

epsagon-browser's Issues

Current fetch override removes body from HTTP calls

This issue is reproducible if fe use fetch with Request object
Here https://github.com/epsagon/epsagon-browser/blob/main/packages/web/src/instrumentation/fetchInstrumentation.js#L36 we can see that fetch function is called with url and options params: original.apply(this, [url, options]);
But since options is just copy of Request instance, and request instance does not allow to read body property directly, only by calling certain methods link, body property in options variable becomes undefined and fetch call occurs without body
Current behaviour: body for PATCH, POST etc requests is lost
Expected behaviour: body should be send with query

Using Epsagon with typescript projects and enabling source maps

Hi Epsagon team, I am opening this issue to get your advice on using Epsagon with Typesscript React projects created via CRA.
There are several problems with my current setup:

  1. during project startup, we see a lot of errors without any reason. They are not blocking the build but makes the build logs on AWS very noisy and hard to read.
  2. When an exception happens, the errors doesn't refer to the source code (Typescript) instead they only indicate the main javascript bundle. Enables source maps on tsconfig did not solve the issue.

Could you please point me to a document that explains how to setup CRA Typescript projects? An example project will also be very useful.

Example of errors:

2022-09-06T14:30:52.786+01:00CopyFailed to parse source map from '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' file: Error: ENOENT: no such file or directory, open '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' Failed to parse source map from '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts' file: Error: ENOENT: no such file or directory, open '/codebuild/output/src751190034/src/github.com///node_modules/@opentelemetry/api/src/internal/semver.ts'

SerializationException when Cognito & Amplify used in web

We're using Amplify to submit login credentials to Cognito and we're seeing some errors.

When epsagon web is enabled we see the login request to:
https://cognito-identity.us-west-1.amazonaws.com fail with HTTP 400

In the console we see:
zone.js:372 Uncaught (in promise) SerializationException: SerializationException

We have tried setting:
urlPatternsToIgnore: ['.*cognito-identity.*', '.*cognito-idp.*'],

@epsagon/web: 1.3.1

Edit
This is using the aws-amplify library v4.2.6 and the errors are client side (browser console)

epsagon web has react peer dependency

As there is a specific package for React, I don't think the web version should have a dependency on React. This is listed as a peerDependency here

This causes an erroneous warning on install

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.