[VOL-3141] Created Span for various Openflow and Ofagent operations
Change-Id: I49e371479edc087dcf89bd60b43c000ab0bb5547
diff --git a/internal/pkg/openflow/packet.go b/internal/pkg/openflow/packet.go
index dcef5fc..dfbb0d9 100644
--- a/internal/pkg/openflow/packet.go
+++ b/internal/pkg/openflow/packet.go
@@ -25,6 +25,9 @@
)
func (ofc *OFConnection) handlePacketOut(ctx context.Context, packetOut *ofp.PacketOut) {
+ span, ctx := log.CreateChildSpan(ctx, "openflow-packet-out")
+ defer span.Finish()
+
if logger.V(log.DebugLevel) {
js, _ := json.Marshal(packetOut)
logger.Debugw(ctx, "handlePacketOut called",