Skip to content

Commit

Permalink
Bump Snowplow Scala tracker to 1.0.0 (close #504)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjben committed Feb 18, 2022
1 parent 32f36b8 commit 3015403
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ import scala.concurrent.ExecutionContext.Implicits.global

import cats.Id
import cats.data.NonEmptyList

import io.circe.Json
import io.circe.JsonObject

import com.snowplowanalytics.iglu.core._

import com.snowplowanalytics.snowplow.scalatracker.idimplicits._
import com.snowplowanalytics.snowplow.scalatracker.Tracker
import com.snowplowanalytics.snowplow.scalatracker.Emitter.EndpointParams
import com.snowplowanalytics.snowplow.scalatracker.emitters.id.AsyncEmitter
import io.circe.Json

import model.SnowplowMonitoringConfig
import utils._
import io.circe.JsonObject

/**
* Functionality for sending Snowplow events for monitoring purposes
Expand All @@ -45,8 +49,7 @@ object SnowplowTracking {
* @return a new tracker instance
*/
def initializeTracker(config: SnowplowMonitoringConfig): Tracker[Id] = {
val emitter =
AsyncEmitter.createAndStart(config.collectorUri, Some(config.collectorPort), false, None)
val emitter = AsyncEmitter.createAndStart(EndpointParams(config.collectorUri, Some(config.collectorPort)))
new Tracker(NonEmptyList.one(emitter), generated.BuildInfo.name, config.appId)
}

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ object Dependencies {
val scopt = "3.7.1"
val pureconfig = "0.11.0"
val pureconfig013 = "0.13.0"
val snowplowTracker = "0.6.1"
val snowplowTracker = "1.0.0"

val specs2 = "4.5.1"
val specs2CE = "0.4.1"
Expand Down

0 comments on commit 3015403

Please sign in to comment.