Skip to content

Commit

Permalink
#87 HTTP param annotation key
Browse files Browse the repository at this point in the history
  • Loading branch information
feelform committed May 27, 2021
1 parent b02e6a2 commit 7ee0ed7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/constant/annotation-key.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@

'use strict'

// https://github.com/pinpoint-apm/pinpoint/blob/b6a3f3e8aed8111264bedc77b110e0ffd5aa4852/commons/src/main/java/com/navercorp/pinpoint/common/trace/AnnotationKey.java#L144
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_PARAM: new AnnotationKey(41, "http.param"),
HTTP_STATUS_CODE: new AnnotationKey(46, "http.status.code")
}

const EventAnnotationKey= {
const EventAnnotationKey = {
MONGO_JSON_DATA: new AnnotationKey(150, "MONGO-JSON-Data")
}

Expand Down

0 comments on commit 7ee0ed7

Please sign in to comment.