lidavidm opened a new pull request #11906:
URL: https://github.com/apache/arrow/pull/11906
Instructions:
```
$ mkdir otlp
$ nvim otlp/config.dev.yml
exporters:
file:
path: /dev/stdout
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: "0.0.0.0:4318"
cors_allowed_origins:
- '*'
service:
pipelines:
traces:
receivers:
- otlp
exporters:
- file
$ docker run --rm -it -p 4317:4317 -p 4318:4318 -v (pwd)/otlp:/cfg
otel/opentelemetry-collector:0.40.0 --config=/cfg/config.dev.yml
# In another terminal
$ pwd
/path/to/arrow/repo/root
$ mkdir build; cd build
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -GNinja
-DCMAKE_INSTALL_PREFIX=$(pwd)/../install -DCMAKE_INSTALL_LIBDIR=lib
-DARROW_DATASET=ON -DARROW_PARQUET=ON -DARROW_JSON=ON -DARROW_CSV=ON
-DARROW_WITH_SNAPPY=ON -DARROW_WITH_LZ4=ON -DARROW_S3=ON -DARROW_ENGINE=ON
-DARROW_WITH_OPENTELEMETRY=ON
$ ninja install
$ cd ../r
$ export ARROW_HOME=$(pwd)/../install
$ export LD_LIBRARY_PATH=$(pwd)/../install/lib
$ env LIBARROW_DOWNLOAD=false LIBARROW_BUILD=false ARROW_R_DEV=true R CMD
INSTALL .
$ R -e 'remotes::install_github("ursacomputing/arrowbench")'
$ env ARROW_TRACING_BACKEND=otlp_http R -e
'library(arrowbench);run_benchmark(tpc_h, engine=c("arrow"), query_id=c(1),
format=c("parquet"), scale_factor=c(1))'
# Go look at the terminal running the OTLP collector
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]