
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@gitlab/application-sdk-node
Advanced tools
This SDK is for using GitLab Application Services with Node.
Add the NPM package to your package JSON using your preferred package manager:
yarn add @gitlab/application-sdk-node
OR
npm i @gitlab/application-sdk-node
import { GitLabSDK } from '@gitlab/application-sdk-node';
const glSDK = new GitLabSDK({ app_id: 'YOUR_APP_ID', host: 'YOUR_HOST' });
Option | Description |
---|---|
app_id | The ID specified in the GitLab Project Analytics setup guide. It ensures your data is sent to your analytics instance. |
host | The GitLab Project Analytics instance specified in the setup guide. |
identify
Used to associate a user and their attributes with the session and tracking events.
glSDK.identify('123abc', { user_name: 'Matthew' });
Property | Type | Description |
---|---|---|
user_id | String | The ID of the user. |
user_attributes | Hash | Optional. The user attributes to add to the session and tracking events. |
track
Used to trigger a custom event.
glSDK.track(event_name, event_attributes);
Property | Type | Description |
---|---|---|
event_name | String | The name of the custom event. |
event_attributes | Hash | The event attributes to add to the tracked event. |
To develop with a local Snowplow pipeline, use Analytics devkit's Snowplow setup.
Want to contribute to the GitLab Application SDK - Node? follow contributing guide.
FAQs
NodeJS SDK for GitLab Application services
The npm package @gitlab/application-sdk-node receives a total of 66 weekly downloads. As such, @gitlab/application-sdk-node popularity was classified as not popular.
We found that @gitlab/application-sdk-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.