Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make jsii runtime type/version available to code #324

Closed
eladb opened this issue Nov 28, 2018 · 0 comments
Closed

Make jsii runtime type/version available to code #324

eladb opened this issue Nov 28, 2018 · 0 comments

Comments

@eladb
Copy link
Contributor

eladb commented Nov 28, 2018

jsii runtime clients should set an environment variable (JSII_AGENT) with a string of the "jsii user agent". For example: Java/1.8.65 or DotNet/1.2.34.4, etc. This can be used, for example, for analytics purposes.

Users can assume that if JSII_AGENT is not set, the runtime is node.js and they can read the relevant information from process.version.

eladb pushed a commit that referenced this issue Nov 29, 2018
Language runtimes now set JSII_AGENT to include the runtime version
such as "DotNet/1.2.3.4" or "Java/1.8.44".

Fixes #324
@eladb eladb mentioned this issue Nov 29, 2018
eladb pushed a commit that referenced this issue Nov 29, 2018
Language runtimes now set JSII_AGENT to include the runtime version
such as "DotNet/1.2.3.4" or "Java/1.8.44".

Fixes #324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant