mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-30 18:17:55 +00:00 
			
		
		
		
	VAULT-18934: Record individual metrics for each Auditing Event Pipeline (#22266)
* add sink wrapper to take telemetry measures * make use of sinkwrapper
This commit is contained in:
		| @@ -138,10 +138,11 @@ func Factory(ctx context.Context, conf *audit.BackendConfig, useEventLogger bool | ||||
| 		b.nodeIDList[0] = formatterNodeID | ||||
| 		b.nodeMap[formatterNodeID] = f | ||||
|  | ||||
| 		sinkNode, err := event.NewSocketSink(format, address, event.WithSocketType(socketType), event.WithMaxDuration(writeDuration.String())) | ||||
| 		n, err := event.NewSocketSink(format, address, event.WithSocketType(socketType), event.WithMaxDuration(writeDuration.String())) | ||||
| 		if err != nil { | ||||
| 			return nil, fmt.Errorf("error creating socket sink node: %w", err) | ||||
| 		} | ||||
| 		sinkNode := &audit.SinkWrapper{Name: conf.MountPath, Sink: n} | ||||
| 		sinkNodeID, err := event.GenerateNodeID() | ||||
| 		if err != nil { | ||||
| 			return nil, fmt.Errorf("error generating random NodeID for sink node: %w", err) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Marc Boudreau
					Marc Boudreau