You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: session.go
    path of file: ./repos/sharingan/recorder/koala/recording
    
    the code of the file until where you have to start completion: package recording

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"net"
	"time"

	"github.com/v2pro/plz/countlog"
)

// TraceHeader TraceHeader
type TraceHeader []byte

// Session Session
type Session struct {
	Context             string    
    
func (session *Session) Shutdown(ctx context.Context, newSession *Session) {
	if session == nil {
		return
	}

	session.Summary(newSession)

	if session.CallFromInbound == nil {
		return
	}

	if len(session.CallFromInbound.Request) == 0 {
		return
	}

	session.NextSessionID = newSession.SessionID
	for _, recorder := range Recorders {
		recorder.Record(session)
	}

	countlog.Debug("event!recording.session_recorded",
		"ctx", ctx,
		"threadID", session.ThreadID,
		"session", session,
	)
}