Skip to content

Commit

Permalink
feat: Add support for instrumentation version annotations (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
losalex authored Nov 4, 2022
1 parent 1e8b2b0 commit e332a76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
handleGHRelease: true
releaseType: node
extraFiles: ["src/index.ts"]
2 changes: 1 addition & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

common_templates = gcp.CommonTemplates()
templates = common_templates.node_library(source_location='build/src')
s.move(templates, excludes=[".github/auto-label.yaml"])
s.move(templates, excludes=[".github/auto-label.yaml", ".github/release-please.yml"])
node.fix_hermetic()

# --------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const LOGGING_SAMPLED_KEY = 'logging.googleapis.com/trace_sampled';
/**
* Default library version to be used if version retrieval fails
*/
export const NODEJS_BUNYAN_DEFAULT_LIBRARY_VERSION = 'unknown';
export const NODEJS_BUNYAN_DEFAULT_LIBRARY_VERSION = '1.0.0'; // {x-release-please-version}

// The variable to hold cached library version
let libraryVersion: string;
Expand Down

0 comments on commit e332a76

Please # to comment.