@uyu423/pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER (Personalized version)
26 lines (20 loc) • 564 B
JavaScript
/**
* Pinpoint Node.js Agent
* Copyright 2020-present NAVER Corp.
* Apache License v2.0
*/
const AnnotationKey = require('../context/annotation-key')
const DefaultAnnotationKey = {
API: new AnnotationKey(12, "API"),
API_METADATA: new AnnotationKey(13, "API-METADATA"),
HTTP_URL: new AnnotationKey(40, "http.url"),
HTTP_STATUS_CODE: new AnnotationKey(46, "http.status.code")
}
const EventAnnotationKey= {
MONGO_JSON_DATA: new AnnotationKey(150, "MONGO-JSON-Data")
}
module.exports = {
DefaultAnnotationKey,
EventAnnotationKey,
}