Commit 82ef32e
authored
feat: Update error message for invalid log record attribute (#1825)
* feat: Use logger.warn for log attribute validation
Update the way users are notified about invalid log record attribute
keys and values by using OpenTelemetry.logger.warn instead of
OpenTelemetry.handle_error. Also, include the key with the invalid
type in the message.
* test: Update tests for new log message
* chore: Rubocop Bundler/OrderedGems
* fix: Use a handle_error call to match Traces
* chore: Add missing :message kwarg
* chore: Add missing empty line at EOF
* chore: Remove mutex_m install
* Update logs_sdk/Gemfile1 parent ddb2a3c commit 82ef32e
File tree
2 files changed
+6
-4
lines changed- logs_sdk
- lib/opentelemetry/sdk/logs
- test/opentelemetry/sdk/logs
2 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
| 147 | + | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments