Commit 996c805
Fix cpython.gc metrics to use correct attribute name
- Import CPYTHON_GC_GENERATION from semantic conventions
- Replace "generation" with CPYTHON_GC_GENERATION constant
- Change generation values from strings to integers (0, 1, 2)
- Update tests to use correct attribute name "cpython.gc.generation"
Co-authored-by: xrmx <12932+xrmx@users.noreply.github.com>1 parent e4a1b10 commit 996c805
2 files changed
Lines changed: 17 additions & 14 deletions
File tree
- instrumentation/opentelemetry-instrumentation-system-metrics
- src/opentelemetry/instrumentation/system_metrics
- tests
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
958 | 961 | | |
959 | 962 | | |
960 | 963 | | |
961 | | - | |
| 964 | + | |
962 | 965 | | |
963 | 966 | | |
964 | 967 | | |
| |||
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
971 | | - | |
| 974 | + | |
972 | 975 | | |
973 | 976 | | |
974 | 977 | | |
| |||
981 | 984 | | |
982 | 985 | | |
983 | 986 | | |
984 | | - | |
985 | | - | |
986 | | - | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
987 | 990 | | |
988 | 991 | | |
989 | 992 | | |
| |||
Lines changed: 9 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
983 | 983 | | |
984 | 984 | | |
985 | 985 | | |
986 | | - | |
987 | | - | |
988 | | - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
989 | 989 | | |
990 | 990 | | |
991 | 991 | | |
| |||
1007 | 1007 | | |
1008 | 1008 | | |
1009 | 1009 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| |||
1031 | 1031 | | |
1032 | 1032 | | |
1033 | 1033 | | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
| |||
0 commit comments