Skip to content

Commit

Permalink
add better apikey fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Ankcorn committed Nov 4, 2023
1 parent 3eb1bdc commit 2e55376
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

- api key fallback

## [0.2.9] - 2023-11-04

- Add Request Body Parsing
Expand Down
2 changes: 1 addition & 1 deletion src/baselime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class BaselimeSDK {
constructor(options: BaselimeSDKOpts) {
options.serverless = options.serverless || false;
options.collectorUrl = options.collectorUrl || process.env.COLLECTOR_URL || "https://otel.baselime.io/v1";
options.baselimeKey = options.baselimeKey || process.env.BASELIME_KEY
options.baselimeKey = options.baselimeKey || process.env.BASELIME_API_KEY || process.env.BASELIME_KEY


this.options = options;
Expand Down

0 comments on commit 2e55376

Please sign in to comment.