Skip to content

Commit

Permalink
Merge branch 'main' into links
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud authored Mar 24, 2021
2 parents 05cb31d + 41db733 commit 6fa564b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 270 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ These plugins are hosted at <https://github.com/open-telemetry/opentelemetry-js-
- [@opentelemetry/plugin-ioredis][otel-contrib-plugin-ioredis]
- [@opentelemetry/plugin-express][otel-contrib-plugin-express]
- [@opentelemetry/plugin-dns][otel-contrib-plugin-dns]
- [@opentelemetry/hapi-instrumentation][otel-contrib-hapi-instrumentation]
- [@opentelemetry/koa-instrumentation][otel-contrib-koa-instrumentation]
- [@opentelemetry/instrumentation-hapi][otel-contrib-instrumentation-hapi]
- [@opentelemetry/instrumentation-koa][otel-contrib-instrumentation-koa]

#### Web Plugins

Expand All @@ -234,8 +234,8 @@ These plugins are hosted at <https://github.com/open-telemetry/opentelemetry-js-

These plugins are hosted at <https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web>

- [@opentelemetry/plugin-document-load][otel-contrib-plugin-document-load]
- [@opentelemetry/plugin-user-interaction][otel-contrib-plugin-user-interaction]
- [@opentelemetry/instrumentation-document-load][otel-contrib-instrumentation-document-load]
- [@opentelemetry/instrumentation-user-interaction][otel-contrib-instrumentation-user-interaction]

To request automatic tracing support for a module not on this list, please [file an issue](https://github.com/open-telemetry/opentelemetry-js/issues). Alternatively, you can [write an instrumentation yourself](https://github.com/open-telemetry/opentelemetry-js/blob/main/doc/instrumentation-guide.md).

Expand Down Expand Up @@ -436,7 +436,7 @@ Apache 2.0 - See [LICENSE][license-url] for more information.
[otel-contrib-plugin-pg]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-plugin-pg
[otel-contrib-plugin-redis]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-plugin-redis
[otel-contrib-plugin-express]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-plugin-express
[otel-contrib-plugin-user-interaction]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web/opentelemetry-plugin-user-interaction
[otel-contrib-plugin-document-load]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web/opentelemetry-plugin-document-load
[otel-contrib-hapi-instrumentation]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-hapi-instrumentation
[otel-contrib-koa-instrumentation]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-koa-instrumentation
[otel-contrib-instrumentation-user-interaction]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web/opentelemetry-instrumentation-user-interaction
[otel-contrib-instrumentation-document-load]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web/opentelemetry-instrumentation-document-load
[otel-contrib-instrumentation-hapi]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-instrumentation-hapi
[otel-contrib-instrumentation-koa]: https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/node/opentelemetry-instrumentation-koa
8 changes: 0 additions & 8 deletions examples/tracer-web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ By default, the application will run on port `8090`.

## Examples

### Document Load

To see the results, open the browser at <http://localhost:8090/document-load/> and make sure you have the browser console open. The application is using the `ConsoleSpanExporter` and will post the created spans to the browser console.

The screen will look as follows:

![Screenshot of the running example](images/document-load.png)

### XMLHttpRequest

To see the results, open the browser at <http://localhost:8090/xml-http-request/> and make sure you have the browser console open. The application is using the `ConsoleSpanExporter` and will post the created spans to the browser console.
Expand Down
31 changes: 0 additions & 31 deletions examples/tracer-web/examples/document-load/index.html

This file was deleted.

92 changes: 0 additions & 92 deletions examples/tracer-web/examples/document-load/index.js

This file was deleted.

39 changes: 0 additions & 39 deletions examples/tracer-web/examples/user-interaction/index.html

This file was deleted.

87 changes: 0 additions & 87 deletions examples/tracer-web/examples/user-interaction/index.js

This file was deleted.

Binary file removed examples/tracer-web/images/document-load.png
Binary file not shown.
2 changes: 0 additions & 2 deletions examples/tracer-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
"@opentelemetry/instrumentation-fetch": "^0.18.0",
"@opentelemetry/instrumentation-xml-http-request": "^0.18.0",
"@opentelemetry/metrics": "^0.18.0",
"@opentelemetry/plugin-document-load": "^0.12.0",
"@opentelemetry/plugin-user-interaction": "^0.12.0",
"@opentelemetry/propagator-b3": "^0.18.0",
"@opentelemetry/tracing": "^0.18.0",
"@opentelemetry/web": "^0.18.0"
Expand Down
2 changes: 0 additions & 2 deletions examples/tracer-web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ const directory = path.resolve(__dirname);
const common = {
mode: 'development',
entry: {
'document-load': 'examples/document-load/index.js',
metrics: 'examples/metrics/index.js',
fetch: 'examples/fetch/index.js',
'xml-http-request': 'examples/xml-http-request/index.js',
'user-interaction': 'examples/user-interaction/index.js',
zipkin: 'examples/zipkin/index.js',
},
output: {
Expand Down
13 changes: 12 additions & 1 deletion packages/opentelemetry-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,18 @@ npm install --save @opentelemetry/resources

## Usage

> TODO
```typescript
import { Resource, SERVICE_RESOURCE } from '@opentelemetry/resources';
const resource = new Resource({
[SERVICE_RESOURCE.NAME]: 'api-service',
});

const another_resource = new Resource({
'service.version': 2.0.0,
'service.group': 'instrumentation-group'
});
const merged_resource = resource.merge(another_resource);
```

## Useful links

Expand Down

0 comments on commit 6fa564b

Please sign in to comment.