Skip to content

Commit 65835db

Browse files
authored
Merge branch 'main' into main
2 parents 95da33b + dda9bd0 commit 65835db

File tree

45 files changed

+1607
-610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1607
-610
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: enhancement
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: elasticsearchexporter
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Add telemetry for bulk indexers used to index documents to Elasticsearch.
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [38610]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext:
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: breaking
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
5+
component: splunkhecexporter
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: Update 'batcher' config to use internal deprecated struct instead of the one removed from the core.
9+
10+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
11+
issues: [41224]
12+
13+
# If your change doesn't affect end users or the exported elements of any package,
14+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
15+
# Optional: The change log or logs in which this entry should be included.
16+
# e.g. '[user]' or '[user, api]'
17+
# Include 'user' if the change is relevant to end users.
18+
# Include 'api' if there is a change to a library API.
19+
# Default: '[user]'
20+
change_logs: [api]

.chloggen/doris306.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: dorisexporter
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: fix ddl for doris 3.0.6 and 2.1.10
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [40578, 40827]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: 1. Use `size_based` compaction policy for the trace graph table instead of `time_series`. | 2. Use `"inverted_index_storage_format"="V2"`. | 3. Use `zstd` as the default compression algorithm for all tables.
19+
20+
# If your change doesn't affect end users or the exported elements of any package,
21+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
22+
# Optional: The change log or logs in which this entry should be included.
23+
# e.g. '[user]' or '[user, api]'
24+
# Include 'user' if the change is relevant to end users.
25+
# Include 'api' if there is a change to a library API.
26+
# Default: '[user]'
27+
change_logs: [user]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Use this changelog template to create an entry for release notes.
2+
3+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4+
change_type: bug_fix
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
7+
component: receiver/lokireceiver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: fix parsing of Content-Type header
11+
12+
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13+
issues: [41192]
14+
15+
# (Optional) One or more lines of additional information to render under the primary note.
16+
# These lines will be padded with 2 spaces and then inserted directly into the document.
17+
# Use pipe (|) for multiline entries.
18+
subtext: |
19+
When sending logs in json format a valid header like `Content-Type: application/json; charset=utf-8`
20+
was rejected because the value was not equal to `application/json`.
21+
This changes the parsing of `Content-Type` header to accept optional parameters.
22+
23+
24+
# If your change doesn't affect end users or the exported elements of any package,
25+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
26+
# Optional: The change log or logs in which this entry should be included.
27+
# e.g. '[user]' or '[user, api]'
28+
# Include 'user' if the change is relevant to end users.
29+
# Include 'api' if there is a change to a library API.
30+
# Default: '[user]'
31+
change_logs: [user]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
change_type: enhancement
2+
component: loadbalancingexporter
3+
note: Use a linear probe to decrease variance caused by hash collisions, which was causing a non-uniform distribution of loadbalancing.
4+
issues: [41200]
5+
change_logs: [user]

.chloggen/rm-batcher-splunk.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
1-
# Use this changelog template to create an entry for release notes.
2-
31
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
4-
change_type: breaking
2+
change_type: deprecation
53

64
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
75
component: splunkhecexporter
86

97
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10-
note: Remove deprecated batcher config for splunkhecexporter, use sending_queue::batch
8+
note: Deprecate 'batcher' config, use 'sending_queue::batch' instead
119

1210
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
13-
issues: [39961]
14-
15-
# (Optional) One or more lines of additional information to render under the primary note.
16-
# These lines will be padded with 2 spaces and then inserted directly into the document.
17-
# Use pipe (|) for multiline entries.
18-
subtext:
11+
issues: [41224]
1912

2013
# If your change doesn't affect end users or the exported elements of any package,
2114
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

Makefile

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,30 @@ otel-from-tree:
534534
# 2. Run `make otel-from-tree` (only need to run it once to remap go modules)
535535
# 3. You can now build contrib and it will use your local otel core changes.
536536
# 4. Before committing/pushing your contrib changes, undo by running `make otel-from-lib`.
537-
$(MAKE) for-all CMD="$(GOCMD) mod edit -replace go.opentelemetry.io/collector=$(SRC_PARENT_DIR)/opentelemetry-collector"
537+
@source $(MODULES) && \
538+
replace_args=""; \
539+
echo "# BEGIN otel-from-tree" >> "./cmd/otelcontribcol/builder-config.yaml"; \
540+
echo "# BEGIN otel-from-tree" >> "./cmd/oteltestbedcol/builder-config.yaml"; \
541+
for module in "$${beta_modules[@]}" "$${stable_modules[@]}"; do \
542+
subpath=$${module#go.opentelemetry.io/collector}; \
543+
if [ "$${subpath}" = "$${module}" ]; then subpath=""; fi; \
544+
replace_args="$${replace_args} -replace $${module}=$(SRC_PARENT_DIR)/opentelemetry-collector$${subpath}"; \
545+
echo " - $${module} => $(SRC_PARENT_DIR)/opentelemetry-collector$${subpath}" >> "./cmd/otelcontribcol/builder-config.yaml"; \
546+
echo " - $${module} => $(SRC_PARENT_DIR)/opentelemetry-collector$${subpath}" >> "./cmd/oteltestbedcol/builder-config.yaml"; \
547+
done; \
548+
$(MAKE) for-all CMD="$(GOCMD) mod edit $${replace_args}"
538549

539550
.PHONY: otel-from-lib
540551
otel-from-lib:
541552
# Sets opentelemetry core to be not be pulled from local source tree. (Undoes otel-from-tree.)
542-
$(MAKE) for-all CMD="$(GOCMD) mod edit -dropreplace go.opentelemetry.io/collector"
553+
@source $(MODULES) && \
554+
dropreplace_args=""; \
555+
for module in "$${beta_modules[@]}" "$${stable_modules[@]}"; do \
556+
dropreplace_args="$${dropreplace_args} -dropreplace $${module}"; \
557+
done; \
558+
sed -i '' '/# BEGIN otel-from-tree/,$$d' "./cmd/otelcontribcol/builder-config.yaml"; \
559+
sed -i '' '/# BEGIN otel-from-tree/,$$d' "./cmd/oteltestbedcol/builder-config.yaml"; \
560+
$(MAKE) for-all CMD="$(GOCMD) mod edit $${dropreplace_args}"
543561

544562
.PHONY: build-examples
545563
build-examples:

exporter/dorisexporter/config.go

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,31 @@ const (
128128
properties = `
129129
PROPERTIES (
130130
"replication_num" = "%d",
131-
"compaction_policy" = "time_series",
131+
"compaction_policy" = "%s",
132132
"dynamic_partition.enable" = "true",
133133
"dynamic_partition.create_history_partition" = "true",
134134
"dynamic_partition.time_unit" = "DAY",
135135
"dynamic_partition.start" = "%d",
136136
"dynamic_partition.history_partition_num" = "%d",
137137
"dynamic_partition.end" = "1",
138-
"dynamic_partition.prefix" = "p"
138+
"dynamic_partition.prefix" = "p",
139+
"compression" = "zstd",
140+
"inverted_index_storage_format" = "V2"
139141
)
140142
`
141143
)
142144

145+
const (
146+
compactionPolicySizeBased = "size_based"
147+
compactionPolicyTimeSeries = "time_series"
148+
)
149+
150+
// // propertiesStr returns the properties string for non-unique key tables.
143151
func (cfg *Config) propertiesStr() string {
144-
return fmt.Sprintf(properties, cfg.ReplicationNum, cfg.startHistoryDays(), cfg.CreateHistoryDays)
152+
return fmt.Sprintf(properties, cfg.ReplicationNum, compactionPolicyTimeSeries, cfg.startHistoryDays(), cfg.CreateHistoryDays)
153+
}
154+
155+
// // propertiesStrForUniqueKey returns the properties string for unique key tables.
156+
func (cfg *Config) propertiesStrForUniqueKey() string {
157+
return fmt.Sprintf(properties, cfg.ReplicationNum, compactionPolicySizeBased, cfg.startHistoryDays(), cfg.CreateHistoryDays)
145158
}

exporter/dorisexporter/exporter_traces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (e *tracesExporter) start(ctx context.Context, host component.Host) error {
109109
e.logger.Warn("failed to create materialized view", zap.Error(err))
110110
}
111111

112-
ddl = fmt.Sprintf(tracesGraphDDL, e.cfg.Traces, e.cfg.propertiesStr())
112+
ddl = fmt.Sprintf(tracesGraphDDL, e.cfg.Traces, e.cfg.propertiesStrForUniqueKey())
113113
_, err = conn.ExecContext(ctx, ddl)
114114
if err != nil {
115115
return err

0 commit comments

Comments
 (0)