Skip to content

Commit

Permalink
feat: Add support for instrumentation version annotations (#760)
Browse files Browse the repository at this point in the history
  • Loading branch information
losalex authored Nov 4, 2022
1 parent b7ddf6b commit 8237001
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/common.ts"]
2 changes: 1 addition & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

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


Expand Down
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const LOGGING_SAMPLED_KEY = 'logging.googleapis.com/trace_sampled';
/**
* Default library version to be used if version retrieval fails
*/
export const NODEJS_WINSTON_DEFAULT_LIBRARY_VERSION = 'unknown';
export const NODEJS_WINSTON_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 8237001

Please sign in to comment.