Opentelemetry - GDPR Plugin
This packages allows to quickly add GDPR Info to spans. Currently implemented as a Proof of Concept for Express Servers.
Quickstart
In one line
Add this at the start of your app:
// 1. Import this package;// 2. Configure some base information (or add them via Environment Variables, see below);// Load Opentelemetry with our Plugin pre-configuredtracingFullConfigurationCONFIG;
Usage
All http requests made are automatically traced and the base information are attached. In order to assign specific information to a request Header can be used as a fast an easy way, for example:
http.get 'http://localhost:4000', ,;
They will override the base information for this request.
GDPR Information
You can use the follwing environment variables or header attributes to provide the GDPR information. Overwriting each other as follwing:
- Header Attributes
- Environment Variables
- Code Configuration
Header Attrbiute | Environment Variable | Code Configuration Property | Description |
---|---|---|---|
--- | GDPR_LOCATION |
location |
|
gdpr.ttl |
GDPR_TTL |
baseTTL |
|
gdpr.legalBasis |
GDPR_LEGALBASIS |
baseLegalBasis |
|
gdpr.legitimateInterest |
GDPR_LEGITIMATEINTEREST |
baseLegitimateInterest |
|
gdpr.automatedDecisionMaking |
GDPR_AUTOMATEDDECISIONMAKING |
baseAutomatedDecisionMaking |
|
gdpr.purpose |
GDPR_PURPOSE |
basePurpose |
More Configuration Options
- Integrate with existing OpenTelemetry Configurations. Add it to the plugins sections
;