<commit_before>package main

import (
	"flag"
	"net/http"

	example "github.com/rpcx-ecosystem/rpcx-examples3"
	"github.com/smallnest/rpcx/server"
	"github.com/smallnest/rpcx/serverplugin"
)

var (
	addr = flag.String("addr", "localhost:8972", "server address")
)

func main() {
	flag.Parse()

	go http.ListenAndServe(":8080", nil)

	s := server.NewServer()

	traceP := &serverplugin.TracePlugin{}
	//trace.AuthRequest = func(req *http.Request) (any, sensitive bool) { return true, true }

	s.Plugins.Add(traceP)

	s.Register(new(example.Arith), "")
	s.Serve("tcp", *addr)
}<commit_msg>Update server.go<commit_after>package main

import (
	"flag"
	"net/http"

	example "github.com/rpcx-ecosystem/rpcx-examples3"
	"github.com/smallnest/rpcx/server"
	"github.com/smallnest/rpcx/serverplugin"
)

var (
	addr = flag.String("addr", "localhost:8972", "server address")
)

func main() {
	flag.Parse()

	go http.ListenAndServe(":8080", nil)

	s := server.NewServer()

	traceP := &serverplugin.OpenTracingPlugin{}
	//trace.AuthRequest = func(req *http.Request) (any, sensitive bool) { return true, true }

	s.Plugins.Add(traceP)

	s.Register(new(example.Arith), "")
	s.Serve("tcp", *addr)
}
{'fraction_non_alphanumeric': 0.17527519051651144, 'fraction_numerical': 0.015241320914479255, 'mean_word_length': 4.765853658536585, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1725724', 'n_tokens_mistral': 478, 'n_tokens_neox': 448, 'n_words': 77}