You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the expected behavior?
What did you expect to see?
the Gauge value updates as per the updated value sent in the callback.
What is the actual behavior?
What did you see instead?
The value always remain the same, "1" is the initial value, and then it changes to 2,3,4,...
2{
scope name : ostream_metric_example
schema url :
version : 1.2.0
start time : Thu Sep 1 06:54:33 2022
end time : Thu Sep 1 06:54:34 2022
instrument name : ostream_metric_example_observable_counter
description :
unit :
type : LastValuePointData
timestamp : 0
valid : true
value : 1
attributes :
resources :
service.name: unknown_service
telemetry.sdk.language: cpp
telemetry.sdk.name: opentelemetry
telemetry.sdk.version: 1.6.0
}
3{
scope name : ostream_metric_example
schema url :
version : 1.2.0
start time : Thu Sep 1 06:54:34 2022
end time : Thu Sep 1 06:54:35 2022
instrument name : ostream_metric_example_observable_counter
description :
unit :
type : LastValuePointData
timestamp : 0
valid : true
value : 1
attributes :
resources :
service.name: unknown_service
telemetry.sdk.language: cpp
telemetry.sdk.name: opentelemetry
telemetry.sdk.version: 1.6.0
}
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe your environment
https://github.com/open-telemetry/opentelemetry-cpp; main branch
Steps to reproduce
Modify https://github.com/open-telemetry/opentelemetry-cpp/blob/main/examples/common/metrics_foo_library/foo_library.cc:71 to change observable counter to observable gauge. and accordingly modify the view in https://github.com/open-telemetry/opentelemetry-cpp/blob/main/examples/metrics_simple/metrics_ostream.cc :58 to display Gauge value. and run the sample test
What is the expected behavior?
What did you expect to see?
the Gauge value updates as per the updated value sent in the callback.
What is the actual behavior?
What did you see instead?
The value always remain the same, "1" is the initial value, and then it changes to 2,3,4,...
2{
scope name : ostream_metric_example
schema url :
version : 1.2.0
start time : Thu Sep 1 06:54:33 2022
end time : Thu Sep 1 06:54:34 2022
instrument name : ostream_metric_example_observable_counter
description :
unit :
type : LastValuePointData
timestamp : 0
valid : true
value : 1
attributes :
resources :
service.name: unknown_service
telemetry.sdk.language: cpp
telemetry.sdk.name: opentelemetry
telemetry.sdk.version: 1.6.0
}
3{
scope name : ostream_metric_example
schema url :
version : 1.2.0
start time : Thu Sep 1 06:54:34 2022
end time : Thu Sep 1 06:54:35 2022
instrument name : ostream_metric_example_observable_counter
description :
unit :
type : LastValuePointData
timestamp : 0
valid : true
value : 1
attributes :
resources :
service.name: unknown_service
telemetry.sdk.language: cpp
telemetry.sdk.name: opentelemetry
telemetry.sdk.version: 1.6.0
}
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: