Describe your environment
Environment: Microsoft Windows [Version 10.0.19042.1889]
Python: 3.10.5
PIP: 22.2.2
running locally.
Steps to reproduce
- From
docs\examples\metrics copy the reader folder to a new location in your drive. In my case it was C:\learning\otel\reader.
- Create your python virtualenv. From a command prompt:
virtualenv .
- Install requirements. From a command prompt:
pip install -r requirements.txt
- Run the sample code. From a command prompt:
python preferred_aggregation.py
- Run the sample code. From a command prompt:
python preferred_temporality.py
What is the expected behavior?
The sample code should run and emit metrics to the console.
What is the actual behavior?
(reader) C:\learning\otel\reader>python preferred_aggregation.py
Traceback (most recent call last):
File "C:\learning\otel\reader\preferred_aggregation.py", line 31, in <module>
reader = PeriodicExportingMetricReader(
TypeError: PeriodicExportingMetricReader.__init__() got an unexpected keyword argument 'preferred_aggregation'
(reader) C:\learning\otel\reader>python preferred_temporality.py
Traceback (most recent call last):
File "C:\learning\otel\reader\preferred_temporality.py", line 32, in <module>
reader = PeriodicExportingMetricReader(
TypeError: PeriodicExportingMetricReader.__init__() got an unexpected keyword argument 'preferred_temporality'
Additional context
Add any other context about the problem here.
Describe your environment
Environment: Microsoft Windows [Version 10.0.19042.1889]
Python: 3.10.5
PIP: 22.2.2
running locally.
Steps to reproduce
docs\examples\metricscopy thereaderfolder to a new location in your drive. In my case it wasC:\learning\otel\reader.virtualenv .pip install -r requirements.txtpython preferred_aggregation.pypython preferred_temporality.pyWhat is the expected behavior?
The sample code should run and emit metrics to the console.
What is the actual behavior?
Additional context
Add any other context about the problem here.