Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP - OTEL issue 5504 fix #1

Open
wants to merge 61 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
bce0053
Fix for #5270 - return default probabilistic operation level strategi…
kuujis Mar 15, 2024
990c4e1
Docs: Badger migration v1 to v3 split from jaeger-docs (#5276)
tico88612 Mar 15, 2024
3912f00
[jaeger-v2] Add support for Cassandra (#5253)
Pushkarm029 Mar 16, 2024
b82c806
[jaeger-v2] add GRPC storage backend integration test (#5259)
james-ryans Mar 16, 2024
55ceba9
[kafka-consumer] Add support for setting fetch message max bytes (#5283)
sappusaketh Mar 19, 2024
19a9c60
Updated unit tests to load expected responses from fixtures folder
kuujis Mar 19, 2024
cd75115
Renamed fixture files, updated expected sampling probabilities to avo…
kuujis Mar 19, 2024
29e3fe8
Docs: Badger file permission as non-root service (#5282)
tico88612 Mar 19, 2024
db8c04c
[jaeger-v2] Add support for Opensearch (#5257)
akagami-harsh Mar 21, 2024
250e27b
build(deps): bump github.com/prometheus/common from 0.49.0 to 0.51.0 …
dependabot[bot] Mar 22, 2024
c56e724
Replaced the deprecated logging exporter to debug exporter (#5291)
majermarci Mar 22, 2024
b8d03f9
build(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#5280)
dependabot[bot] Mar 23, 2024
d887b74
Fix test goroutine leaks in ./cmd/collector/app/ (#5292)
WillSewell Mar 23, 2024
53592b3
[jaeger-v2] Add StartTimeMin and StartTimeMax params to consumeTraces…
james-ryans Mar 23, 2024
cfc2871
Use math.MaxUint64 instead of 0xffffffffffffffff (#5295)
majorteach Mar 24, 2024
951ee9b
Call testutils.VerifyGoLeaks in cmd/internal/printconfig tests (#5300)
Mar 26, 2024
202b52e
Added JSON regeneration flag, addressed MR comments
kuujis Mar 27, 2024
0be0cb9
Add goleak check in pkg/cassandra/gocql/testutils (#5304)
danish9039 Mar 27, 2024
7c9dce4
Refactor healthcheck signalling between server and service (#5308)
Mar 28, 2024
c48a38a
Fix goroutine leaks in cmd/query/app (#5299)
Mar 29, 2024
2285143
Fix goroutine leaks in prometheus/metricsstore tests (#5309)
Mar 29, 2024
f934846
Move Archive test into shared integration test suite (#5207)
Wise-Wizard Mar 29, 2024
bae96f7
Fix goroutine leaks in plugin/sampling/strategystore/adaptive (#5310)
Mar 29, 2024
030d19a
simplify
yurishkuro Mar 30, 2024
bffcb91
Merge branch 'main' into otel_5504_issue_fix
yurishkuro Mar 30, 2024
39f2859
reformat
yurishkuro Mar 30, 2024
62b7b08
refactor and document the code better
yurishkuro Mar 30, 2024
34f6a25
[storage] Simplify integration tests (#5312)
yurishkuro Mar 30, 2024
5eadac5
remove commented out code
yurishkuro Mar 30, 2024
db352a3
Merge branch 'main' into otel_5504_issue_fix
yurishkuro Mar 30, 2024
727bf18
Fix false positive goleak test (#5315)
yurishkuro Mar 31, 2024
f18416a
Allow go-leak linter to fail CI (#5316)
yurishkuro Apr 1, 2024
4482086
Fix breaking change in upgrading OTEL Collector (#5314)
lekaf974 Apr 2, 2024
5ccbacd
build(deps): bump actions/dependency-review-action from 4.1.3 to 4.2.…
dependabot[bot] Apr 2, 2024
f81494b
build(deps): bump anchore/sbom-action from 0.15.9 to 0.15.10 (#5319)
dependabot[bot] Apr 2, 2024
6df29c0
build(deps): bump codecov/codecov-action from 4.1.0 to 4.1.1 (#5318)
dependabot[bot] Apr 2, 2024
e8b53c9
build(deps): bump github.com/elastic/go-elasticsearch/v8 from 8.12.1 …
dependabot[bot] Apr 2, 2024
efef095
build(deps): bump the hashicorp group with 1 update (#5320)
dependabot[bot] Apr 2, 2024
055fcd7
build(deps): bump github.com/prometheus/common from 0.51.0 to 0.51.1 …
dependabot[bot] Apr 2, 2024
ecbae67
Prepare release 1.56.0 (#5321)
yurishkuro Apr 3, 2024
fc42919
build(deps): bump golang.org/x/sys from 0.18.0 to 0.19.0 (#5328)
dependabot[bot] Apr 5, 2024
063c036
build(deps): bump github.com/prometheus/common from 0.51.1 to 0.52.2 …
dependabot[bot] Apr 5, 2024
7fcbca8
build(deps): bump golang.org/x/net from 0.22.0 to 0.24.0 (#5329)
dependabot[bot] Apr 5, 2024
88af82e
Intialized ES factory (#5313)
Wise-Wizard Apr 6, 2024
8a4748c
build(deps): bump github.com/prometheus/client_model from 0.6.0 to 0.…
dependabot[bot] Apr 6, 2024
7b1dec3
Fix for #5270 is disabled by default. Added a switch for enabling via…
kuujis Apr 6, 2024
ea53d8e
build(deps): bump codecov/codecov-action from 4.1.1 to 4.2.0 (#5337)
dependabot[bot] Apr 8, 2024
6a26005
Fix goroutine leaks raised by plugin/storage/integration/cassandra_te…
Apr 8, 2024
deea97b
[jaeger-v2] add gRPC integration e2e test mode (#5322)
james-ryans Apr 9, 2024
26be0ea
build(deps): bump google.golang.org/grpc from 1.62.1 to 1.63.2 (#5342)
dependabot[bot] Apr 9, 2024
f071a25
build(deps): bump the otel group with 8 updates (#5338)
dependabot[bot] Apr 9, 2024
7be2e34
build(deps): bump the otel-instrumentation group with 2 updates (#5339)
dependabot[bot] Apr 9, 2024
aa9cefc
Replace grpc.Dial function that is going to be deprecated in grpc-go@…
tico88612 Apr 9, 2024
4681e36
build(deps): bump the otel-collector group with 30 updates (#5347)
dependabot[bot] Apr 11, 2024
a9a7bc2
Fix goroutine leaks in grpc integration tests (#5340)
Apr 11, 2024
4954a13
Reintroduced original function until deprecation, moved deprecation w…
kuujis Apr 14, 2024
1391866
Clarified flag message.
kuujis Apr 14, 2024
d7377db
Added handling for missing strategies source and strategies not being…
kuujis Apr 14, 2024
9d69adc
[storage integration tests] Remove Refresh (#5358)
yurishkuro Apr 14, 2024
2171073
Merge branch 'main' into otel_5504_issue_fix
yurishkuro Apr 14, 2024
db54fd0
Added parameterised tests to ensure code coverage.
kuujis Apr 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix for jaegertracing#5270 - return default probabilistic operation l…
…evel strategies for ratelimiting service configurations

Signed-off-by: Kazimieras Pociunas <[email protected]>
  • Loading branch information
kuujis committed Mar 15, 2024
commit bce005383a56795c50cbfc8e8e9de6500265561e
11 changes: 7 additions & 4 deletions plugin/sampling/strategystore/static/strategy_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,16 @@ func (h *strategyStore) parseStrategies(strategies *strategies) {
// is not merged with and only used as a fallback).
opS := newStore.serviceStrategies[s.Service].OperationSampling
if opS == nil {
if newStore.defaultStrategy.OperationSampling == nil ||
newStore.serviceStrategies[s.Service].ProbabilisticSampling == nil {
// no default per-operation strategies - just move on
if newStore.defaultStrategy.OperationSampling == nil {
continue
}
// Service has no per-operation strategies, so just reference the default settings and change default samplingRate.
// Service has no per-operation strategies, so just reference the default settings
// and change default samplingRate to the value defined in service strategy if value is available.
newOpS := *newStore.defaultStrategy.OperationSampling
newOpS.DefaultSamplingProbability = newStore.serviceStrategies[s.Service].ProbabilisticSampling.SamplingRate
if newStore.serviceStrategies[s.Service].ProbabilisticSampling != nil {
newOpS.DefaultSamplingProbability = newStore.serviceStrategies[s.Service].ProbabilisticSampling.SamplingRate
}
newStore.serviceStrategies[s.Service].OperationSampling = &newOpS
continue
}
Expand Down
18 changes: 15 additions & 3 deletions plugin/sampling/strategystore/static/strategy_store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,12 +470,24 @@ func TestServiceNoPerOperationStrategies(t *testing.T) {

s, err := store.GetSamplingStrategy(context.Background(), "ServiceA")
require.NoError(t, err)
assert.Equal(t, 1.0, s.OperationSampling.DefaultSamplingProbability)
require.NotNil(t, s.OperationSampling)
os := s.OperationSampling
assert.EqualValues(t, 1, os.DefaultSamplingProbability)
require.Len(t, os.PerOperationStrategies, 1)
assert.Equal(t, "/health", os.PerOperationStrategies[0].Operation)
assert.EqualValues(t, 0.0, os.PerOperationStrategies[0].ProbabilisticSampling.SamplingRate)
expected := makeResponse(api_v2.SamplingStrategyType_PROBABILISTIC, 1.0)
assert.Equal(t, *expected.ProbabilisticSampling, *s.ProbabilisticSampling)

s, err = store.GetSamplingStrategy(context.Background(), "ServiceB")
require.NoError(t, err)

expected := makeResponse(api_v2.SamplingStrategyType_RATE_LIMITING, 3)
require.NotNil(t, s.OperationSampling)
os = s.OperationSampling
assert.EqualValues(t, 0.2, os.DefaultSamplingProbability)
require.Len(t, os.PerOperationStrategies, 1)
assert.Equal(t, "/health", os.PerOperationStrategies[0].Operation)
assert.EqualValues(t, 0.0, os.PerOperationStrategies[0].ProbabilisticSampling.SamplingRate)
expected = makeResponse(api_v2.SamplingStrategyType_RATE_LIMITING, 3)
assert.Equal(t, *expected.RateLimitingSampling, *s.RateLimitingSampling)
}

Expand Down