forked from open-telemetry/opentelemetry-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcharge-hooks.js
35 lines (24 loc) · 864 Bytes
/
charge-hooks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
// This file is meant to be implemented by forks of the OpenTelemetry Demo repository
// to showcase custom observability functionality implemented by the fork.
// The OpenTelemetry Demo repository will not modify this file, allowing forks to
// demonstrate their own unique functionality without merge conflicts.
class chargeHooks {
constructor(request) {
this.request = request;
}
// The preHook function is called before the charge span is started
preHook() {
}
// The startHook function is called after the charge span is started
startHook() {
}
// The endHook function is called before the charge span is ended
endHook() {
}
// The postHook function is called after the charge span is ended
postHook() {
}
}
module.exports = chargeHooks;