Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aws-observability/aws-otel-go
/ functions
Functions
179 in github.com/aws-observability/aws-otel-go
⨍
Functions
179
◇
Types & classes
32
Function
TestExpiredReservoir
assert that reservoir quota is expired.
samplers/aws/xray/internal/reservoir_test.go:14
Function
TestExpiredReservoirBorrowSample
assert that reservoir is expired, borrowing 1 req during that second.
samplers/aws/xray/internal/rule_test.go:102
Function
TestExpiredReservoirSameAsClockTime
assert that reservoir quota is still expired since now time is equal to expiresAt time.
samplers/aws/xray/internal/reservoir_test.go:30
Function
TestExpiredReservoirTraceIDRationBasedSample
assert that reservoir is expired, borrowed 1 req during that second so now using traceIDRatioBased sampler.
samplers/aws/xray/internal/rule_test.go:125
Function
TestFallbackSamplerDescription
assert fallback sampling description.
samplers/aws/xray/fallback_sampler_test.go:59
Function
TestFreshRule
assert that rule is active and not stale.
samplers/aws/xray/internal/rule_test.go:38
Function
TestGenerateClientID
assert that able to successfully generate the client ID.
samplers/aws/xray/internal/manifest_test.go:1478
Function
TestGetSamplingRules
(t *testing.T)
samplers/aws/xray/internal/client_test.go:38
Function
TestGetSamplingRulesWithMissingValues
(t *testing.T)
samplers/aws/xray/internal/client_test.go:130
Function
TestGetSamplingTargets
(t *testing.T)
samplers/aws/xray/internal/client_test.go:168
Function
TestGetSamplingTargetsMissingValues
(t *testing.T)
samplers/aws/xray/internal/client_test.go:207
Function
TestInactiveRule
assert that rule is inactive but not stale.
samplers/aws/xray/internal/rule_test.go:56
Function
TestInvalidResponseBody
(t *testing.T)
samplers/aws/xray/internal/client_test.go:280
Function
TestLongStrings
End of Amazon modification.
samplers/aws/xray/internal/match_test.go:110
Function
TestMatchAgainstManifestRules
assert that manifest rule r2 is a match for sampling.
samplers/aws/xray/internal/manifest_test.go:82
Function
TestMatchAgainstManifestRulesAttributeMatch
assert that if rules has attribute and span has those attribute with same value then matching will happen.
samplers/aws/xray/internal/manifest_test.go:134
Function
TestMatchAgainstManifestRulesAttributeWildCardMatch
assert that wildcard attributes will match.
samplers/aws/xray/internal/manifest_test.go:176
Function
TestMatchAgainstManifestRulesNoAttributeMatch
assert that if some of the rules attributes are not present in span attributes then matching will not happen.
samplers/aws/xray/internal/rule_test.go:539
Function
TestMatchAgainstManifestRulesNoMatch
assert that when no known rule is match then returned rule is nil, matched flag is false.
samplers/aws/xray/internal/manifest_test.go:220
Function
TestMinPollInterval
asserts the minimum value of all the targets.
samplers/aws/xray/internal/manifest_test.go:1426
Function
TestMinPollIntervalNegativeCase
asserts the minimum value of all the targets when some targets has negative interval.
samplers/aws/xray/internal/manifest_test.go:1454
Function
TestMinPollIntervalNoRules
asserts that manifest with empty rules return 0.
samplers/aws/xray/internal/manifest_test.go:1468
Function
TestMinPollIntervalZeroCase
asserts the minimum value of all the targets when some targets has 0 interval.
samplers/aws/xray/internal/manifest_test.go:1440
Function
TestMixedSnapshots
assert that fresh and inactive rules are not included in a snapshot.
samplers/aws/xray/internal/manifest_test.go:1146
Function
TestNewClient
(t *testing.T)
samplers/aws/xray/internal/client_test.go:237
Function
TestNewConfig
assert that user provided values are tied to config.
samplers/aws/xray/remote_sampler_config_test.go:18
Function
TestNewManifest
assert that new manifest has certain non-nil attributes.
samplers/aws/xray/internal/manifest_test.go:34
Function
TestOtlpUdpClient
(t *testing.T)
exporters/xrayudp/client_test.go:33
Function
TestOtlpUdpExporter
(t *testing.T)
exporters/xrayudp/exporter_test.go:13
Function
TestPartialUserProvidedConfig
assert when some config is provided by user then other config will be picked up from default config.
samplers/aws/xray/remote_sampler_config_test.go:44
Function
TestPreserveRulesWithSameRuleProperties
Validate Rules are preserved when a rule is updated with the same ruleProperties.
samplers/aws/xray/internal/manifest_test.go:1649
Function
TestQuotaBalanceAfterPortionOfSecond
assert that when quotaBalance is assigned the correct value after a portion of a second.
samplers/aws/xray/internal/reservoir_test.go:208
Function
TestQuotaBalanceBorrow
assert quotaBalance and capacity of borrowing case.
samplers/aws/xray/internal/reservoir_test.go:226
Function
TestQuotaBalanceIncreaseByOneBorrowCase
assert that when borrow is true and elapsedTime is greater than 1, then we only increase the quota balance by 1.
samplers/aws/xray/internal/reservoir_test.go:244
Function
TestRefreshManifestAddOneInvalidRule
assert that 1 valid and 1 invalid rule update only valid rule gets stored to the manifest.
samplers/aws/xray/internal/manifest_test.go:527
Function
TestRefreshManifestError
assert that if collector is not enabled at specified endpoint, returns an error.
samplers/aws/xray/internal/manifest_test.go:65
Function
TestRefreshManifestIncorrectVersion
assert that rule with version greater than one does not update to the manifest.
samplers/aws/xray/internal/manifest_test.go:483
Function
TestRefreshManifestMissingRuleName
assert that rule with no RuleName does not update to the manifest.
samplers/aws/xray/internal/manifest_test.go:441
Function
TestRefreshManifestMissingServiceName
assert that rule with no ServiceName updates manifest successfully with empty values.
samplers/aws/xray/internal/manifest_test.go:399
Function
TestRefreshManifestRules
(t *testing.T)
samplers/aws/xray/internal/manifest_test.go:252
Function
TestRefreshManifestTargetNoSnapShot
assert that inactive rule so return early without doing getSamplingTargets call.
samplers/aws/xray/internal/manifest_test.go:612
Function
TestRefreshManifestTargets
assert that refresh manifest targets successfully updates reservoir value for a rule.
samplers/aws/xray/internal/manifest_test.go:652
Function
TestRefreshManifestTargetsPollIntervalUpdateTest
assert that refresh manifest targets successfully updates samplingTargetsPollingInterval.
samplers/aws/xray/internal/manifest_test.go:722
Function
TestRemoteSamplerDescription
TestRemoteSamplerDescription assert remote sampling description.
samplers/aws/xray/remote_sampler_test.go:13
Function
TestResetQuotaUsageRotation
(t *testing.T)
samplers/aws/xray/internal/reservoir_test.go:179
Function
TestRespondsWithErrorStatusCode
(t *testing.T)
samplers/aws/xray/internal/client_test.go:266
Function
TestSampleUsingFallbackSampler
assert sampling using fallback sampler.
samplers/aws/xray/fallback_sampler_test.go:16
Function
TestSnapshot
assert on snapshot of sampling statistics counters.
samplers/aws/xray/internal/rule_test.go:74
Function
TestSnapshots
assert that snapshots returns an array of valid sampling statistics.
samplers/aws/xray/internal/manifest_test.go:1065
Function
TestSortBasedOnPriority
assert that sorting an unsorted array results in a sorted array - check priority.
samplers/aws/xray/internal/manifest_test.go:1348
Function
TestSortBasedOnRuleName
assert that sorting an unsorted array results in a sorted array - check priority and rule name.
samplers/aws/xray/internal/manifest_test.go:1387
Function
TestStaleRule
assert that rule is active but stale due to quota is expired.
samplers/aws/xray/internal/rule_test.go:20
Function
TestTraceIDRatioBasedSamplerFixedRateZero
assert that when fixed rate is 0 traceIDRatioBased sampler will not sample the trace.
samplers/aws/xray/internal/rule_test.go:196
Function
TestTraceIDRatioBasedSamplerReservoirIsConsumedSample
assert that sampling using traceIDRationBasedSampler when reservoir quota is consumed.
samplers/aws/xray/internal/rule_test.go:172
Function
TestUdpExporter
(t *testing.T)
exporters/xrayudp/udp_exporter_test.go:36
Function
TestUpdateReservoir
assert that a missing sampling rule in manifest does not update it's reservoir values.
samplers/aws/xray/internal/manifest_test.go:986
Function
TestUpdateReservoirMissingFixedRate
assert that a sampling target with missing Fixed Rate returns an error.
samplers/aws/xray/internal/manifest_test.go:1013
Function
TestUpdateReservoirMissingRuleName
assert that a sampling target with missing Rule Name returns an error.
samplers/aws/xray/internal/manifest_test.go:1039
Function
TestUpdateTargets
assert that a valid sampling target updates its rule.
samplers/aws/xray/internal/manifest_test.go:803
Function
TestUpdateTargetsRefreshFlagTest
assert that when last rule modification time is greater than manifest refresh time we need to update manifest out of band (async).
samplers/aws/xray/internal/manifest_test.go:857
Function
TestUpdateTargetsUnprocessedStatistics
unprocessed statistics error code is 5xx then updateTargets returns an error, if 4xx refresh flag set to true.
samplers/aws/xray/internal/manifest_test.go:913
Function
TestUpdatingRulesAndTargetsWhileMatchingConcurrentSafe
validate no data race is happening when updating rule properties and rule targets in manifest while matching.
samplers/aws/xray/internal/manifest_test.go:1558
Function
TestUpdatingRulesAndTargetsWhileSamplingConcurrentSafe
validate no data race is happening when updating rule properties and rule targets in manifest while sampling.
samplers/aws/xray/internal/rule_test.go:560
Function
TestUpdatingRulesWhileMatchingConcurrentSafe
validate no data race is happening when updating rule properties in manifest while matching.
samplers/aws/xray/internal/manifest_test.go:1485
Function
TestUpdatingSamplingStatisticsWhenSamplingConcurrentSafe
validate no data race is when capturing sampling statistics in manifest while sampling.
samplers/aws/xray/internal/manifest_test.go:1786
Function
TestValidEndpoint
assert that valid endpoint would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:57
Function
TestValidateConfigNegativeDuration
assert negative sampling rules interval leads to an error.
samplers/aws/xray/remote_sampler_config_test.go:90
Function
TestValidateConfigPositiveDuration
assert positive sampling rules interval.
samplers/aws/xray/remote_sampler_config_test.go:96
Function
TestValidateHostNameWithSpecialCharacterEndpoint
assert that host name with special character would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:68
Function
TestValidateInvalidEndpoint
assert that endpoint without host name would not result in an error.
samplers/aws/xray/remote_sampler_config_test.go:79
Function
TestWildCardMatchNegative
assert wildcard match is negative.
samplers/aws/xray/internal/match_test.go:79
Function
TestWildCardMatchPositive
2025-05-07: Begin Amazon modification. assert wildcard match is positive.
samplers/aws/xray/internal/match_test.go:18
Function
TestZeroCapacityFailBorrow
(t *testing.T)
samplers/aws/xray/internal/reservoir_test.go:155
Method
Write
(byteArray []byte)
exporters/xrayudp/udp_exporter_test.go:22
Method
apply
(*config)
samplers/aws/xray/remote_sampler_config.go:33
Method
apply
(cfg *config)
samplers/aws/xray/remote_sampler_config.go:38
Method
apply
(cfg *config)
exporters/xrayudp/config.go:20
Function
main
()
sampleapp/main.go:42
Method
now
now returns current time according to the standard time package.
samplers/aws/xray/internal/clock.go:22
← previous
101–179 of 179, ranked by callers