Skip to content

Commit 66a6dc6

Browse files
chore: added eum serverless example app (#1465)
refs https://jsw.ibm.com/browse/INSTA-20571 Co-authored-by: Arya Mohanan <[email protected]>
1 parent daae850 commit 66a6dc6

39 files changed

+14733
-26
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,9 @@ currency-report.md
1111

1212
# CI
1313
node-modules*.tar
14-
node-modules*.tar.zst
14+
node-modules*.tar.zst
15+
16+
example-apps/eum-serverless-collector/website.txt
17+
example-apps/eum-serverless-collector/public/instana-sdk.js
18+
example-apps/eum-serverless-collector/public/instana-eum.js
19+
example-apps/eum-serverless-collector/.angular
File renamed without changes.
File renamed without changes.

packages/collector/dummy-app/README.md renamed to example-apps/collector/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
# Dummy App
1+
# Collector Example app
22

3-
This is a trivial Node.js application suitable for quick experiments with the @instana/collector. By default, it will
4-
connect to a local agent on port 42699.
3+
This is a trivial Node.js application suitable for quick experiments with the @instana/collector. By default, it will connect to a local agent on port 42699.
54

65
## Configuring And Starting The App
76

@@ -20,8 +19,8 @@ cd nodejs/packages/collector
2019
DROP_DATA=true npm run agent-stub
2120
2221
# start the app (in a separate terminal)
23-
cd nodejs/packages/collector/dummy-app
24-
INSTANA_AGENT_PORT=3210 node .
22+
cd nodejs/example-apps/collector
23+
INSTANA_AGENT_PORT=3210 npm start
2524
```
2625

2726
## Triggering Requests
File renamed without changes.
File renamed without changes.

packages/collector/dummy-app/src/autoprofile.js renamed to example-apps/collector/src/autoprofile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
const config = require('./config');
99

10-
let packageToRequire = '../..';
10+
let packageToRequire = '../../packages/collector';
1111
if (config.mode === 'npm') {
1212
packageToRequire = '@instana/collector';
1313
}
File renamed without changes.

packages/collector/dummy-app/src/index.js renamed to example-apps/collector/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ process.on('SIGTERM', () => {
1313

1414
const config = require('./config');
1515

16-
let packageToRequire = '../..';
16+
let packageToRequire = '../../packages/collector';
1717
if (config.mode === 'npm') {
1818
packageToRequire = '@instana/collector';
1919
}
File renamed without changes.

0 commit comments

Comments
 (0)