-
Notifications
You must be signed in to change notification settings - Fork 244
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
Comments
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
Merged
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
jsii runtime clients should set an environment variable (
JSII_AGENT
) with a string of the "jsii user agent". For example:Java/1.8.65
orDotNet/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
.The text was updated successfully, but these errors were encountered: