Skip to content

Instantly share code, notes, and snippets.

View greatvovan's full-sized avatar

Vladimir greatvovan

  • Teck Resources / Race21
  • Vancouver, Canada
View GitHub Profile
@greatvovan
greatvovan / OpenTelemetry Scala with Exporter - manual
Last active September 19, 2024 08:11
Databricks Scala notebook: OpenTelemetry Exporter - manual configuration
// neiltestappi
val aiConnStr = "..."
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Level
import org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
import org.apache.logging.log4j.core.config.Configurator
import io.opentelemetry.instrumentation.log4j.appender.v2_17.OpenTelemetryAppender
import io.opentelemetry.api.OpenTelemetry
@greatvovan
greatvovan / OpenTelemetry Scala with Exporter - autoconfigure
Last active September 19, 2024 07:27
Databricks Scala notebook: OpenTelemetry Exporter - autoconfigure
val aiConnStr = "..."
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.Level
import org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
import org.apache.logging.log4j.core.config.Configurator
import io.opentelemetry.instrumentation.log4j.appender.v2_17.OpenTelemetryAppender
import io.opentelemetry.api.OpenTelemetry
import io.opentelemetry.api.common.Attributes
import io.opentelemetry.api.common.AttributeKey
openapi: 3.0.0
info:
version: 1.0.0
title: Title
description: Description.
servers:
- url: https://my.domain.com
description: Public URL
@greatvovan
greatvovan / mbo
Created December 11, 2019 22:26
Poetry add error (private pypi repo)
$ poetry add -vvv mypackage==1.3.2
Using virtualenv: /Users/xxx/Library/Caches/pypoetry/virtualenvs/peapi-py3.8
[PackageNotFound]
Package [mypackage] not found.
Exception trace:
/Users/xxx/.poetry/lib/poetry/_vendor/py3.8/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
/Users/xxx/.poetry/lib/poetry/console/application.py in do_run() at line 88