mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
27 lines
432 B
Go
27 lines
432 B
Go
|
package instrumenting
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/zitadel/zitadel/internal/notification/channels"
|
||
|
)
|
||
|
|
||
|
func Wrap(
|
||
|
ctx context.Context,
|
||
|
channel channels.NotificationChannel,
|
||
|
traceSpanName,
|
||
|
successMetricName,
|
||
|
failureMetricName string,
|
||
|
) channels.NotificationChannel {
|
||
|
return traceMessages(
|
||
|
ctx,
|
||
|
countMessages(
|
||
|
ctx,
|
||
|
logMessages(ctx, channel),
|
||
|
successMetricName,
|
||
|
failureMetricName,
|
||
|
),
|
||
|
traceSpanName,
|
||
|
)
|
||
|
}
|