Skip to content

Commit

Permalink
Merge branch 'main' of github.com:baselime/node-opentelemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Nov 4, 2023
2 parents 784314b + 3ac8b39 commit e887563
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# BaselimeSDK for OpenTelemetry and Node.js
# Node.js Baselime OpenTelemetry SDK
[![Documentation][docs_badge]][docs]
[![Latest Release][release_badge]][release]
[![License][license_badge]][license]

Ship your OpenTelemetry traces to Baselime. It makes getting started with a custom trace configuration and Baselime simpler and works with any Node.js application.
Instrument your Node.js applications with OpenTelemetry and send the traces to [Baselime](https://baselime.io).

![A trace from an ECS task](./traces.png)
![](./traces.png)

## Supported Service
- Next.js
- TRPC
- AWS

## Getting Started

To find out how to configure the BaselimeSDK for container runtimes checkout the [baselime docs](https://baselime.io/docs/sending-data/opentelemetry/node.js/containers/)
Check out the [documentation](https://baselime.io/docs/sending-data/opentelemetry/).

## Example

Expand Down Expand Up @@ -41,3 +40,19 @@ The BaselimeSDK class takes the following configuration options
| service | string (optional) | The service name. |
| namespace | string (optional) | The namespace. |

## License

© Baselime Limited, 2023

Distributed under MIT License (`The MIT License`).

See [LICENSE](LICENSE) for more information.

<!-- Badges -->

[docs]: https://baselime.io/docs/
[docs_badge]: https://img.shields.io/badge/docs-reference-blue.svg?style=flat-square
[release]: https://github.com/baselime/node-opentelemetry/releases/latest
[release_badge]: https://img.shields.io/github/release/baselime/node-opentelemetry.svg?style=flat-square&ghcache=unused
[license]: https://opensource.org/licenses/MIT
[license_badge]: https://img.shields.io/github/license/baselime/node-opentelemetry.svg?color=blue&style=flat-square&ghcache=unused
11 changes: 0 additions & 11 deletions examples/fargate-express-alb/stacks/MyStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,6 @@ export function Container({ stack }: StackContext) {
cpu: 256,
taskImageOptions: {
image: ecs.ContainerImage.fromDockerImageAsset(asset),
logDriver: new ecs.FireLensLogDriver({
options: {
"Name": "http",
"Host": "ecs-logs-ingest.baselime.cc",
"Port": "443",
"TLS": "on",
"format": "json",
"retry_limit": "2",
"header": `x-api-key ${StringParameter.valueForStringParameter(stack, 'baselime-key')}`,
},
}),
enableLogging: true,
environment: {
BASELIME_KEY: StringParameter.valueForStringParameter(stack, 'baselime-key'),
Expand Down

0 comments on commit e887563

Please sign in to comment.