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: consumer.go
    path of file: ./repos/ddd-hexagonal-cqrs-es-eda/telemetry-consumer/consumer
    
    the code of the file until where you have to start completion: package consumer

import (
	"log"
	"os"

	"github.com/nats-io/nats.go"
)

var natsURL = os.Getenv("NATS_URL")

const (
	subject = "trace_events"
)

func ConnectToJetStream() (nats.JetStreamContext, *nats.Conn
    
func ConnectToJetStream() (nats.JetStreamContext, *nats.Conn) {
	nc, err := nats.Connect(natsURL)
	if err != nil {
		log.Fatalf("Error connecting to NATS: %v %v", natsURL, err)
	}

	js, err := nc.JetStream()
	if err != nil {
		log.Fatalf("Error connecting to JetStream: %v", err)
	}
	return js, nc
}