Skip to content

Commit

Permalink
changed collector url
Browse files Browse the repository at this point in the history
Signed-off-by: chahatsagarmain <chahatsagar2003@gmail.com>
  • Loading branch information
chahatsagarmain committed Oct 23, 2024
1 parent 37d1fc1 commit 34da943
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions crossdock/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
const (
behaviorEndToEnd = "endtoend"

envAgentHostPort = "JAEGER_AGENT_HOST_PORT"
envQueryHostPort = "JAEGER_QUERY_HOST_PORT"
envCollectorSamplingHostPort = "JAEGER_COLLECTOR_SAMPLING_HOST_PORT"
envQueryHostPort = "JAEGER_QUERY_HOST_PORT"

envQueryHealthcheckHostPort = "JAEGER_QUERY_HC_HOST_PORT"
envCollectorHealthcheckHostPort = "JAEGER_COLLECTOR_HC_HOST_PORT"
Expand All @@ -29,8 +29,8 @@ const (
var (
logger, _ = zap.NewDevelopment()

agentHostPort string
queryHostPort string
collectorSamplingHostPort string
queryHostPort string

queryHealthcheckHostPort string
collectorHealthcheckHostPort string
Expand All @@ -44,7 +44,7 @@ type clientHandler struct {
}

func main() {
agentHostPort = getEnv(envAgentHostPort, "jaeger-agent:5778")
collectorSamplingHostPort = getEnv(envCollectorSamplingHostPort, "jaeger-collector:14268")
queryHostPort = getEnv(envQueryHostPort, "jaeger-query:16686")
queryHealthcheckHostPort = getEnv(envQueryHealthcheckHostPort, "jaeger-query:16687")
collectorHealthcheckHostPort = getEnv(envCollectorHealthcheckHostPort, "jaeger-collector:14269")
Expand Down Expand Up @@ -78,9 +78,9 @@ func (h *clientHandler) initialize() {
httpHealthCheck(logger, "jaeger-collector", "http://"+collectorHealthcheckHostPort)

queryService := services.NewQueryService("http://"+queryHostPort, logger)
agentService := services.NewAgentService("http://"+agentHostPort, logger)
samplingService := services.NewAgentService("http://"+collectorSamplingHostPort, logger)

traceHandler := services.NewTraceHandler(queryService, agentService, logger)
traceHandler := services.NewTraceHandler(queryService, samplingService, logger)
behaviors := crossdock.Behaviors{
behaviorEndToEnd: traceHandler.EndToEndTest,
}
Expand Down
2 changes: 1 addition & 1 deletion crossdock/services/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewAgentService(url string, logger *zap.Logger) AgentService {
}

func getSamplingURL(url string) string {
return url + "/sampling?service=%s"
return url + "/api/sampling?service=%s"
}

// GetSamplingRate returns the sampling rate for the service-operation from the agent service.
Expand Down

0 comments on commit 34da943

Please sign in to comment.