Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
fix(web): revert epsagon typo
Browse files Browse the repository at this point in the history
This reverts commit ab6f055.
  • Loading branch information
Nimrod Shlagman authored Aug 1, 2021
1 parent b2b776d commit 0fb66ab
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ This package provides tracing to front end of web applications for the collectio

To install Epsagon, simply run:
```sh
npm install @epsagin/web --save
npm install @epsagon/react --save
```

## Usage

To initialize the tracer, import the SDK and call the init function before the start of your project.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down Expand Up @@ -82,7 +82,7 @@ Advanced options can be configured as a parameter to the init() method.
By default all outgoing requests will be added with a `traceparent` header which allows Epsagon to connect the front end trace to the backend traces. Some external services will not accept a traceparent header on request. If you need to limit the traceparent headers to requests to internal services, pass in an array of the hosts you do want to connect to in the propagateTraceHeaderUrls param in the config.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down
6 changes: 3 additions & 3 deletions packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ This package provides tracing to front end of web applications for the collectio

To install Epsagon, simply run:
```sh
npm install @epsagin/web
npm install @epsagon/react
```

## Usage

To initialize the tracer, import the SDK and call the init function before the start of your project.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down Expand Up @@ -82,7 +82,7 @@ Advanced options can be configured as a parameter to the init() method.
By default all outgoing requests will be added with a `traceparent` header which allows Epsagon to connect the front end trace to the backend traces. Some external services will not accept a traceparent header on request. If you need to limit the traceparent headers to requests to internal services, pass in an array of the hosts you do want to connect to in the propagateTraceHeaderUrls param in the config.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down
6 changes: 3 additions & 3 deletions packages/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@epsagin/web",
"name": "@epsagon/react",
"version": "0.0.0-development",
"description": "This package provides tracing to React web applications for the collection of distributed tracing and performance metrics.",
"author": "Epsagon Team <[email protected]>",
Expand Down Expand Up @@ -61,7 +61,7 @@
"react": "^16.0.0"
},
"dependencies": {
"@epsagin/nodejs": "^1.1.5",
"@epsagon/web": "^1.1.5",
"@opentelemetry/plugin-react-load": "^0.16.0",
"ua-parser-js": "^0.7.28"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint max-len: ["error", { "ignoreComments": true }] */

/* eslint no-param-reassign: ["error", { "props": true, "ignorePropertyModificationsFor": ["parentSpan"] }] */
const { EpsagonUtils } = require('@epsagin/nodejs');
const { EpsagonUtils } = require('@epsagon/web');

function ReactRedirectInstrumentation(history, tracer, parentSpan) {
const startSpan = (originPath, newPath) => tracer.startSpan('route_change', {
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/web-tracer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ReactRedirectInstrumentation from './instrumentation/redirectInstrumentation';

const webInit = require('@epsagin/nodejs').init;
export {identify, tag} from '@epsagin/nodejs';
const webInit = require('@epsagon/web').init;
export {identify, tag} from '@epsagon/web';

function init(configData) {
const { tracer, epsSpan } = webInit(configData);
Expand Down
6 changes: 3 additions & 3 deletions packages/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ This package provides tracing to front end of web applications for the collectio

To install Epsagon, simply run:
```sh
npm install @epsagin/web
npm install @epsagon/react
```

## Usage

To initialize the tracer, import the SDK and call the init function before the start of your project.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down Expand Up @@ -82,7 +82,7 @@ Advanced options can be configured as a parameter to the init() method.
By default all outgoing requests will be added with a `traceparent` header which allows Epsagon to connect the front end trace to the backend traces. Some external services will not accept a traceparent header on request. If you need to limit the traceparent headers to requests to internal services, pass in an array of the hosts you do want to connect to in the propagateTraceHeaderUrls param in the config.

```javascript
import epsagon from '@epsagin/web'
import epsagon from '@epsagon/react'

epsagon.init({
token: 'epsagon-token',
Expand Down
2 changes: 1 addition & 1 deletion packages/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@epsagin/nodejs",
"name": "@epsagon/web",
"version": "0.0.0-development",
"description": "This package provides tracing to Node.js web applications for the collection of distributed tracing and performance metrics.",
"author": "Epsagon Team <[email protected]>",
Expand Down

0 comments on commit 0fb66ab

Please sign in to comment.