Skip to content

Commit 4b37ebf

Browse files
committed
changes
1 parent 6cf0d81 commit 4b37ebf

20 files changed

Lines changed: 89 additions & 7432 deletions
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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: breaking
5+
6+
# The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog)
7+
component: receiver/sqlserver
8+
9+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
10+
note: Enable the `server.address` and `server.port` resource attributes by default, set `host.name` to the collector host's `os.Hostname()`, and remove the `receiver.sqlserver.RemoveServerResourceAttribute` feature gate.
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: [49885]
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+
`server.address` and `server.port` are now emitted by default. `host.name` now reports the hostname of the
20+
machine running the collector (via `os.Hostname()`) instead of the configured SQL Server address. To stop
21+
emitting the server attributes, disable them via `resource_attributes.server.address.enabled: false` and
22+
`resource_attributes.server.port.enabled: false`. The `receiver.sqlserver.RemoveServerResourceAttribute`
23+
feature gate has been removed.
24+
25+
# If your change doesn't affect end users or the exported elements of any package,
26+
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.
27+
# Optional: The change log or logs in which this entry should be included.
28+
# e.g. '[user]' or '[user, api]'
29+
# Include 'user' if the change is relevant to end users.
30+
# Include 'api' if there is a change to a library API.
31+
# Default: '[user]'
32+
change_logs: []

receiver/sqlserverreceiver/README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -157,16 +157,6 @@ Top query collection enabled:
157157
max_rows_per_query: 1450
158158
```
159159

160-
## Feature Gate
161-
162-
A new feature gate was added in `v0.129.0` for removing the `server.address` and `server.port`
163-
resource attributes, as they are not identified as resources attributes in the semantic conventions.
164-
To enable it, pass the following argument to the Collector:
165-
166-
```
167-
--feature-gates=receiver.sqlserver.RemoveServerResourceAttribute
168-
```
169-
170160
## Metrics
171161

172162
Details about the metrics produced by this receiver can be found in [documentation.md](./documentation.md)

receiver/sqlserverreceiver/documentation.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,22 +1267,12 @@ top query
12671267

12681268
| Name | Description | Values | Enabled | Semantic Convention | Stability |
12691269
| ---- | ----------- | ------ | ------- | ------------------- | --------- |
1270-
| host.name | The host name of SQL Server | Any Str | true | - | - |
1271-
| server.address | Name of the database host. | Any Str | false | - | - |
1272-
| server.port | Server port number. | Any Int | false | - | - |
1270+
| host.name | The hostname of the machine running the collector. | Any Str | true | - | - |
1271+
| server.address | The address of the SQL Server host. | Any Str | true | - | - |
1272+
| server.port | The port of the SQL Server host. | Any Int | true | - | - |
12731273
| service.instance.id | A unique identifier of the SQL Server instance in the format host:port. This resource attribute is only available when the receiver is configured to directly connect to SQL Server. | Any Str | true | - | - |
12741274
| service.name | Logical name of the service. When enabled, defaults to unknown_service:microsoft.sql_server. | Any Str | false | - | - |
12751275
| service.namespace | Logical namespace for the service (for example team or environment). When enabled, defaults to an empty string until set via configuration. | Any Str | false | - | - |
12761276
| sqlserver.computer.name | The name of the SQL Server instance being monitored. | Any Str | false | - | - |
12771277
| sqlserver.database.name | The name of the SQL Server database. | Any Str | true | - | - |
12781278
| sqlserver.instance.name | The name of the SQL Server instance being monitored. | Any Str | false | - | - |
1279-
1280-
## Feature Gates
1281-
1282-
This component has the following feature gates:
1283-
1284-
| Feature Gate | Stage | Description | From Version | To Version | Reference |
1285-
| ------------ | ----- | ----------- | ------------ | ---------- | --------- |
1286-
| `receiver.sqlserver.RemoveServerResourceAttribute` | alpha | When enabled, the server.address and server.port resource attributes are removed from metrics. | v0.129.0 | N/A | [Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/40141) |
1287-
1288-
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.

receiver/sqlserverreceiver/generated_package_test.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlserverreceiver/internal/metadata/generated_config.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlserverreceiver/internal/metadata/generated_feature_gates.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

receiver/sqlserverreceiver/internal/metadata/generated_logs.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlserverreceiver/internal/metadata/generated_logs_test.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlserverreceiver/internal/metadata/generated_metrics.go

Lines changed: 3 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlserverreceiver/internal/metadata/generated_resource_test.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)